The dimeEllipse class handles an ELLIPSE entity.
More...
#include <dime/entities/Ellipse.h>
|
| dimeEllipse () |
|
void | setCenter (const dimeVec3f &c) |
|
const dimeVec3f & | getCenter () const |
|
void | setMajorAxisEndpoint (const dimeVec3f &v) |
|
const dimeVec3f & | getMajorAxisEndpoint () const |
|
void | setMinorMajorRatio (const dxfdouble ratio) |
|
dxfdouble | getMinorMajorRatio () const |
|
void | setStartParam (const dxfdouble p) |
|
dxfdouble | getStartParam () const |
|
void | setEndParam (const dxfdouble p) |
|
dxfdouble | getEndParam () const |
|
virtual dimeEntity * | copy (dimeModel *const model) const |
|
virtual bool | getRecord (const int groupcode, dimeParam ¶m, const int index=0) const |
|
virtual const char * | getEntityName () const |
|
virtual void | print () const |
|
virtual bool | write (dimeOutput *const out) |
|
virtual int | typeId () const |
|
virtual int | countRecords () const |
|
| dimeExtrusionEntity () |
|
void | setExtrusionDir (const dimeVec3f &v) |
|
const dimeVec3f & | getExtrusionDir () const |
|
void | setThickness (const dxfdouble val) |
|
dxfdouble | getThickness () const |
|
virtual bool | isOfType (const int thtypeid) const |
|
| dimeEntity () |
|
virtual | ~dimeEntity () |
|
int16 | getEntityFlags () const |
|
void | setEntityFlags (const int16 flags) |
|
int16 | getColorNumber () const |
|
void | setColorNumber (const int16 c) |
|
virtual void | setLayer (const dimeLayer *const layer) |
|
const dimeLayer * | getLayer () const |
|
const char * | getLayerName () const |
|
virtual bool | read (dimeInput *const in) |
|
bool | isDeleted () const |
|
void | setDeleted (const bool onOff=true) |
|
bool | isTagged () const |
|
void | setTagged (const bool onOff=true) |
|
virtual GeometryType | extractGeometry (dimeArray< dimeVec3f > &verts, dimeArray< int > &indices, dimeVec3f &extrusionDir, dxfdouble &thickness) |
|
| dimeRecordHolder (const int separator) |
|
virtual | ~dimeRecordHolder () |
|
void | setRecord (const int groupcode, const dimeParam &value, dimeMemHandler *const memhandler=NULL) |
|
void | setRecords (const int *const groupcodes, const dimeParam *const params, const int numrecords, dimeMemHandler *const memhandler=NULL) |
|
void | setIndexedRecord (const int groupcode, const dimeParam &value, const int index, dimeMemHandler *const memhandler=NULL) |
|
dimeRecord * | findRecord (const int groupcode, const int index=0) |
|
int | getNumRecordsInRecordHolder (void) const |
|
dimeRecord * | getRecordInRecordHolder (const int idx) const |
|
| dimeBase (void) |
|
virtual | ~dimeBase () |
|
void * | operator new (size_t size, dimeMemHandler *memhandler=NULL, const int alignment=4) |
|
void | operator delete (void *ptr) |
|
|
enum | GeometryType { NONE,
POLYGONS,
LINES,
POINTS
} |
|
static dimeEntity * | createEntity (const char *const name, dimeMemHandler *const memhandler=NULL) |
|
static bool | readEntities (dimeInput *const file, dimeArray< dimeEntity * > &array, const char *const stopat) |
|
static bool | copyEntityArray (const dimeEntity *const *const array, const int nument, dimeModel *const model, dimeArray< dimeEntity * > &destarray) |
|
static dimeEntity ** | copyEntityArray (const dimeEntity *const *const array, int &nument, dimeModel *const model) |
|
static void | arbitraryAxis (const dimeVec3f &givenaxis, dimeVec3f &newaxis) |
|
static void | generateUCS (const dimeVec3f &givenaxis, dimeMatrix &m) |
|
dimeVec3f | extrusionDir |
|
dxfdouble | thickness |
|
The dimeEllipse class handles an ELLIPSE entity.
dimeEllipse::dimeEllipse |
( |
) | |
|
int dimeEllipse::countRecords |
( |
) | |
const |
|
virtual |
Returns the number of records in the record holder. Should be overloaded by subclasses which should count their records, and then call the parent's method. This method is used to precalculate the number of records to be written. Very useful when progress information is needed during write().
Reimplemented from dimeExtrusionEntity.
References dimeExtrusionEntity::countRecords().
const dimeVec3f & dimeEllipse::getCenter |
( |
) | |
const |
|
inline |
Returns the center coordinates of the ellipse.
dxfdouble dimeEllipse::getEndParam |
( |
) | |
const |
|
inline |
const char * dimeEllipse::getEntityName |
( |
) | |
const |
|
virtual |
Must be implemented by subclasses to return the entity name; e.g. POLYLINE, 3DFACE, etc.
Implements dimeEntity.
const dimeVec3f & dimeEllipse::getMajorAxisEndpoint |
( |
) | |
const |
|
inline |
Returns the major axis endpoint of this ellipse.
dxfdouble dimeEllipse::getMinorMajorRatio |
( |
) | |
const |
|
inline |
Returns the ratio of the minor axis to the major axis.
bool dimeEllipse::getRecord |
( |
const int |
groupcode, |
|
|
dimeParam & |
param, |
|
|
const int |
index = 0 |
|
) |
| const |
|
virtual |
Will return the value of the record with group code groupcode. false is returned if the record could not be found. Subclasses should overload this method if one or several records are stored in the class. If the groupcode queried is not stored internally, the subclass should call its parent's method.
Reimplemented from dimeExtrusionEntity.
References dimeExtrusionEntity::getRecord().
dxfdouble dimeEllipse::getStartParam |
( |
) | |
const |
|
inline |
void dimeEllipse::setCenter |
( |
const dimeVec3f & |
c) | |
|
|
inline |
Sets the center coordinates of the ellipse.
void dimeEllipse::setEndParam |
( |
const dxfdouble |
p) | |
|
|
inline |
Sets the end parameter for this ellipse. Possible values range from 0 to 2pi, but this value should be bigger than the start parameter. Default value is 2pi.
- See Also
- dimeEllipse::setStartParam()
void dimeEllipse::setMajorAxisEndpoint |
( |
const dimeVec3f & |
v) | |
|
|
inline |
Sets the major axis endpoint of the ellipse.
- See Also
- dimeEllipse::setRatio()
void dimeEllipse::setMinorMajorRatio |
( |
const dxfdouble |
ratio) | |
|
|
inline |
Sets the ratio of the minor axis to the major axis.
void dimeEllipse::setStartParam |
( |
const dxfdouble |
p) | |
|
|
inline |
Sets the start parameter for this ellipse. Possible values range from 0 to 2pi. Default value is 0.
int dimeEllipse::typeId |
( |
) | |
const |
|
virtual |
Must be implemented by all subclasses, and should return an unique id for that class.
Reimplemented from dimeExtrusionEntity.
The documentation for this class was generated from the following files: