cee::geo::Part
-
class
Part
: public RefCountedObject 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().
Note! A part can only be in one model at a time
See also
GeometryModel, PartSettings, and Data
Public Functions
-
Part
() Constructs an empty part.
-
int
id
() const Returns the id of the part.
Note! It’s up to the user if this is a unique value or not. Default id is -1.
See also
-
void
setId
(int id) Sets the id of the part.
Note! It’s up to the user if this is a unique value or not. Default id is -1.
See also
-
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.
-
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.
-
TextureCoordinates *
textureCoordinates
() Returns the texture coordinates or NULL if none specified.
-
void
setTextureCoordinates
(TextureCoordinates *coordinates) Specifies the texture coordinates.
Set to NULL to clear data
-
PartSettings &
settings
() Returns the part settings.
-
const PartSettings &
settings
() const Returns the part settings.
-
BoundingBox
boundingBox
() Returns the bounding box of the associated part data adjusted for the transformation matrix, if set.
See also
-