Geometry part and how it is to be drawn. More...
Public Member Functions | |
Part () | |
Constructs an empty part. More... | |
Part (Data *data) | |
Constructs a part. More... | |
Data * | data () |
Returns the part data. More... | |
const Data * | data () const |
Returns a const ptr to the part data. More... | |
void | setData (Data *data) |
Specifies new part data. More... | |
int | id () const |
Returns the id of the part. More... | |
void | setId (int id) |
Sets the id of the part. More... | |
template<typename T > | |
const T * | dataOfType () const |
Returns the active (last inserted/top of stack) effect of the given type T, or NULL if no effect of that type was found. More... | |
template<typename T > | |
T * | dataOfType () |
Returns the active (last inserted/top of stack) effect of the given type T, or NULL if no effect of that type was found. More... | |
TextureCoordinates * | textureCoordinates () |
Returns the texture coordinates or NULL if none specified. More... | |
void | setTextureCoordinates (TextureCoordinates *coordinates) |
Specifies the texture coordinates. More... | |
PartSettings & | settings () |
Returns the part settings. More... | |
const PartSettings & | settings () const |
Returns the part settings. More... | |
const Mat4d & | transformation () const |
Returns the transformation matrix. More... | |
void | setTransformation (const Mat4d &matrix) |
Specifies the transformation matrix. More... | |
BoundingBox | boundingBox () |
Returns the bounding box of the associated part data adjusted for the transformation matrix, if set. More... | |
![]() | |
void | addRef () const |
Increments the reference count for this object. More... | |
void | release () const |
Decrements the reference count for this object. More... | |
int | refCount () const |
Returns the reference count for this object. More... | |
void | setRefCountZero () const |
Sets the ref count to zero, but DOES NOT delete the object. More... | |
Geometry part and how it is to be drawn.
May be built up from points, lines or triangles. Add parts to model using GeometryModel::addPart().
cee::geo::Part::Part | ( | ) |
Constructs an empty part.
cee::geo::Part::Part | ( | Data * | data | ) |
Constructs a part.
cee::BoundingBox cee::geo::Part::boundingBox | ( | ) |
Returns the bounding box of the associated part data adjusted for the transformation matrix, if set.
Data * cee::geo::Part::data | ( | ) |
Returns the part data.
const Data * cee::geo::Part::data | ( | ) | const |
Returns a const ptr to the part data.
const T * cee::geo::Part::dataOfType | ( | ) | const |
Returns the active (last inserted/top of stack) effect of the given type T, or NULL if no effect of that type was found.
T * cee::geo::Part::dataOfType | ( | ) |
Returns the active (last inserted/top of stack) effect of the given type T, or NULL if no effect of that type was found.
int cee::geo::Part::id | ( | ) | const |
Returns the id of the part.
void cee::geo::Part::setData | ( | Data * | data | ) |
Specifies new part data.
void cee::geo::Part::setId | ( | int | id | ) |
Sets the id of the part.
void cee::geo::Part::setTextureCoordinates | ( | TextureCoordinates * | coordinates | ) |
Specifies the texture coordinates.
Set to NULL to clear data
PartSettings & cee::geo::Part::settings | ( | ) |
Returns the part settings.
const PartSettings & cee::geo::Part::settings | ( | ) | const |
Returns the part settings.
void cee::geo::Part::setTransformation | ( | const Mat4d & | matrix | ) |
Specifies the transformation matrix.
TextureCoordinates * cee::geo::Part::textureCoordinates | ( | ) |
Returns the texture coordinates or NULL if none specified.
const Mat4d & cee::geo::Part::transformation | ( | ) | const |
Returns the transformation matrix.