Class hierarchy Compound list Header files Member list
dimePolyline Class Reference
The dimePolyline class handles a POLYLINE entity. More...
#include <Polyline.h>
Inherits dimeExtrusionEntity.
List of all members.
Public Members
- enum Type { POLYLINE ,
POLYFACE_MESH ,
POLYGON_MESH
}
- enum Flags { CLOSED ,
POLYMESH_CLOSED_M ,
CURVE_FIT ,
SPLINE_FIT ,
IS_POLYLINE_3D ,
IS_POLYMESH_3D ,
POLYMESH_CLOSED_N ,
IS_POLYFACE_MESH ,
CONTINOUS_PATTERN
}
- enum SurfaceType { NONE ,
QUADRIC_BSPLINE ,
CUBIC_BSPLINE ,
BEZIER
}
- dimePolyline ()
- virtual ~dimePolyline ()
- int16 getFlags () const
- void setFlags (const int16 flags)
- int getType () const
- const dimeVec3f& getElevation () const
- void setElevation (const dimeVec3f &e)
- int16 getPolymeshCountN () const
- int16 getPolymeshCountM () const
- int16 getSmoothSurfaceMdensity () const
- int16 getSmoothSurfaceNdensity () const
- int getNumCoordVertices () const
- int getNumIndexVertices () const
- int getNumSplineFrameControlPoints () const
- int16 getSurfaceType () const
- void setSurfaceType (const int16 type)
- dimeVertex* getCoordVertex (const int index)
- dimeVertex* getIndexVertex (const int index)
- dimeVertex* getSplineFrameControlPoint (const int index)
- void setCoordVertices (dimeVertex **vertices, const int num, dimeMemHandler * const memhandler = NULL)
- void setIndexVertices (dimeVertex **vertices, const int num, dimeMemHandler * const memhandler = NULL)
- void setSplineFrameControlPoints (dimeVertex **vertices, const int num, dimeMemHandler * const memhandler = NULL)
- virtual dimeEntity* copy (dimeModel *const model) const
- virtual bool getRecord (const int groupcode, dimeParam ¶m, const int index = 0) const
- virtual void setLayer (const dimeLayer * const layer)
- virtual const char* getEntityName () const
- virtual bool read (dimeInput * const in)
- virtual bool write (dimeOutput * const out)
- virtual int typeId () const
- virtual int countRecords () const
- virtual GeometryType extractGeometry (dimeArray <dimeVec3f> &verts, dimeArray <int> &indices, dimeVec3f &extrusionDir, float &thickness)
Protected Members
- virtual bool handleRecord (const int groupcode, const dimeParam ¶m, dimeMemHandler * const memhandler)
- virtual bool traverse (const dimeState * const state, dimeCallback callback, void *userdata)
Detailed Description
The dimePolyline class handles a POLYLINE entity.
Member Function Documentation
dimePolyline::dimePolyline()
Constructor.
dimePolyline::~dimePolyline() [virtual]
Destructor.
int dimePolyline::getType() const
Convenience function that returns the type of the polyline.
void dimePolyline::setCoordVertices(dimeVertex **vertices, const int num, dimeMemHandler * const memhandler)
Sets the coordinate vertices for this polyline. Old vertices will
be deleted.
void dimePolyline::setIndexVertices(dimeVertex **vertices, const int num, dimeMemHandler * const memhandler)
Sets the index vertices for this polyline. Old vertices will
be deleted.
void dimePolyline::setSplineFrameControlPoints(dimeVertex **vertices, const int num, dimeMemHandler * const memhandler)
Sets the spline frame control point vertices for this polyline.
Old control points will be deleted.
dimeEntity* dimePolyline::copy(dimeModel * const model) const [virtual]
Reimplemented from dimeEntity.
bool dimePolyline::getRecord(const int groupcode, dimeParam ¶m, const int index) const [virtual]
Reimplemented from dimeRecordHolder.
void dimePolyline::setLayer(const dimeLayer * const layer) [virtual]
Reimplemented from dimeEntity.
const char* dimePolyline::getEntityName() const [virtual]
Reimplemented from dimeEntity.
bool dimePolyline::read(dimeInput * const file) [virtual]
Reads a POLYLINE entity.
Reimplemented from dimeRecordHolder.
bool dimePolyline::write(dimeOutput * const file) [virtual]
Writes POLYLINE data to file.
Reimplemented from dimeRecordHolder.
int dimePolyline::typeId() const [virtual]
Reimplemented from dimeExtrusionEntity.
int dimePolyline::countRecords() const [virtual]
Reimplemented from dimeRecordHolder.
dimeEntity::GeometryType dimePolyline::extractGeometry(dimeArray <dimeVec3f> &verts, dimeArray <int> &indices, dimeVec3f &extrusionDir, float &thickness) [virtual]
Reimplemented from dimeEntity.
bool dimePolyline::handleRecord(const int groupcode, const dimeParam ¶m, dimeMemHandler * const memhandler) [protected, virtual]
Reimplemented from dimeRecordHolder.
bool dimePolyline::traverse(const dimeState * const state, dimeCallback callback, void *userdata) [protected, virtual]
Overloaded from dimeEntity. Will first do a callback for this entity,
then for all vertices. Each vertex will have a pointer to its
polyline "parent".
Reimplemented from dimeEntity.
The documentation for this class was generated from the following files: