JunkBox_Lib++ (for Windows) 1.10.1
|
#include <ContourBaseData.h>
Public Member Functions | |
ContourBaseData (int idx=0, int num=0) | |
virtual | ~ContourBaseData (void) |
void | init (int idx=0, int num=0) |
void | free (void) |
bool | getm (void) |
void | dup (ContourBaseData a) |
void | execScale (Vector< double > scale) |
void | execShift (Vector< double > shift) |
void | execRotate (Quaternion< double > quat) |
Public Attributes | |
int | num_index |
インデックスの数.(index の要素数) | |
int | num_data |
データ数.(vertex, normal, texcrd, weight の要素数) | |
int | vcount |
ポリゴンの頂点数.通常は3 | |
int * | index |
インデックスデータ | |
Vector< double > * | vertex |
頂点データ vertex[index[0]], vertex[index[1]], vertex[index[2]], ... の順に並ぶ | |
Vector< double > * | normal |
法線ベクトル normal[index[0]], normal[index[1]], normal[index[2]], ... の順に並ぶ | |
UVMap< double > * | texcrd |
テクスチャマップ texcrd[index[0]], texcrd[index[1]], texcrd[index[2]], ... の順に並ぶ | |
ArrayParam< int > * | weight |
Skin の Weight weight[index[0]], weight[index[1]], weight[index[2]], ... の順に並ぶ | |
Definition at line 149 of file ContourBaseData.h.
|
inline |
Definition at line 163 of file ContourBaseData.h.
References ContourBaseData::init().
|
inlinevirtual |
Definition at line 164 of file ContourBaseData.h.
References ContourBaseData::free().
void dup | ( | ContourBaseData | a | ) |
Definition at line 140 of file ContourBaseData.cpp.
References ArrayParam< T >::dup(), ContourBaseData::getm(), ContourBaseData::index, ContourBaseData::normal, ContourBaseData::num_data, ContourBaseData::num_index, ContourBaseData::texcrd, ContourBaseData::vcount, ContourBaseData::vertex, and ContourBaseData::weight.
void execRotate | ( | Quaternion< double > | quat | ) |
Definition at line 179 of file ContourBaseData.cpp.
References ContourBaseData::normal, ContourBaseData::num_data, jbxl::VectorRotation(), and ContourBaseData::vertex.
void execScale | ( | Vector< double > | scale | ) |
Definition at line 159 of file ContourBaseData.cpp.
References ContourBaseData::num_data, ContourBaseData::vertex, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
void execShift | ( | Vector< double > | shift | ) |
Definition at line 169 of file ContourBaseData.cpp.
References ContourBaseData::num_data, ContourBaseData::vertex, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
void free | ( | void | ) |
Definition at line 105 of file ContourBaseData.cpp.
References jbxl::freeNull(), ContourBaseData::index, ContourBaseData::init(), ContourBaseData::normal, ContourBaseData::num_data, ContourBaseData::texcrd, ContourBaseData::vertex, and ContourBaseData::weight.
Referenced by jbxl::freeContourBaseData(), ContourBaseData::getm(), and ContourBaseData::~ContourBaseData().
bool getm | ( | void | ) |
Definition at line 117 of file ContourBaseData.cpp.
References ContourBaseData::free(), ContourBaseData::index, ContourBaseData::normal, ContourBaseData::num_data, ContourBaseData::num_index, ContourBaseData::texcrd, ContourBaseData::vertex, and ContourBaseData::weight.
Referenced by ContourBaseData::dup().
void init | ( | int | idx = 0, |
int | num = 0 ) |
Definition at line 91 of file ContourBaseData.cpp.
References ContourBaseData::index, ContourBaseData::normal, ContourBaseData::num_data, ContourBaseData::num_index, ContourBaseData::texcrd, ContourBaseData::vcount, ContourBaseData::vertex, and ContourBaseData::weight.
Referenced by ContourBaseData::ContourBaseData(), and ContourBaseData::free().
int* index |
Definition at line 156 of file ContourBaseData.h.
Referenced by MeshFacetNode::computeVertexByBREP(), MeshFacetNode::computeVertexDirect(), ContourBaseData::dup(), ContourBaseData::free(), ContourBaseData::getm(), and ContourBaseData::init().
Vector<double>* normal |
Definition at line 158 of file ContourBaseData.h.
Referenced by MeshFacetNode::computeVertexByBREP(), MeshFacetNode::computeVertexDirect(), ContourBaseData::dup(), ContourBaseData::execRotate(), ContourBaseData::free(), ContourBaseData::getm(), and ContourBaseData::init().
int num_data |
Definition at line 153 of file ContourBaseData.h.
Referenced by MeshFacetNode::computeVertexByBREP(), MeshFacetNode::computeVertexDirect(), ContourBaseData::dup(), ContourBaseData::execRotate(), ContourBaseData::execScale(), ContourBaseData::execShift(), ContourBaseData::free(), ContourBaseData::getm(), and ContourBaseData::init().
int num_index |
Definition at line 152 of file ContourBaseData.h.
Referenced by MeshFacetNode::computeVertexDirect(), ContourBaseData::dup(), ContourBaseData::getm(), and ContourBaseData::init().
UVMap<double>* texcrd |
Definition at line 159 of file ContourBaseData.h.
Referenced by MeshFacetNode::computeVertexByBREP(), MeshFacetNode::computeVertexDirect(), ContourBaseData::dup(), ContourBaseData::free(), ContourBaseData::getm(), and ContourBaseData::init().
int vcount |
Definition at line 154 of file ContourBaseData.h.
Referenced by MeshFacetNode::computeVertexByBREP(), MeshFacetNode::computeVertexDirect(), ContourBaseData::dup(), and ContourBaseData::init().
Vector<double>* vertex |
Definition at line 157 of file ContourBaseData.h.
Referenced by MeshFacetNode::computeVertexByBREP(), MeshFacetNode::computeVertexDirect(), ContourBaseData::dup(), ContourBaseData::execRotate(), ContourBaseData::execScale(), ContourBaseData::execShift(), ContourBaseData::free(), ContourBaseData::getm(), and ContourBaseData::init().
ArrayParam<int>* weight |
Definition at line 160 of file ContourBaseData.h.
Referenced by MeshFacetNode::computeVertexByBREP(), MeshFacetNode::computeVertexDirect(), ContourBaseData::dup(), ContourBaseData::free(), ContourBaseData::getm(), and ContourBaseData::init().