cgma
|
#include <GeometryEvent.hpp>
Public Types | |
enum | Type { TOPOLOGY_ENTITY_CONSTRUCTED, TOPOLOGY_ENTITY_MODIFIED, TOPOLOGY_ENTITY_DESTRUCTED, DEVELOPER_COMMAND_FLAG_MODIFIED, MESH_SETTING_MODIFIED, GEOMETRY_TOPOLOGY_MODIFIED, TOPOLOGY_MODIFIED, GEOMETRY_MODIFIED, NEW_ENTITY_UNMERGED, FREE_REF_ENTITY_GENERATED, TOP_LEVEL_ENTITY_DESTRUCTED, ENTITY_NAME_CHANGED, ENTITY_GEOMETRY_COLOR_CHANGED, ENTITY_VISIBILITY_CHANGED, ENTITIES_MERGED, ID_SET, GROUP_MODIFIED, GEOMETRY_TRANSFORMED, VIRTUAL_STATUS_CHANGED } |
Public Member Functions | |
GeometryEvent (Type type, RefEntity *entity) | |
~GeometryEvent () | |
RefEntity * | get_entity () const |
Type | get_type () const |
Protected Attributes | |
Type | mType |
RefEntity * | mRefEntity |
Definition at line 15 of file GeometryEvent.hpp.
enum GeometryEvent::Type |
Definition at line 18 of file GeometryEvent.hpp.
{ TOPOLOGY_ENTITY_CONSTRUCTED, /* A TopologyEntity was created */ TOPOLOGY_ENTITY_MODIFIED, /* A TopologyEntity was changed */ TOPOLOGY_ENTITY_DESTRUCTED, /* A TopologyEntity was deleted */ DEVELOPER_COMMAND_FLAG_MODIFIED, /* The 'set developer command on/off' was issued */ MESH_SETTING_MODIFIED, /* a mesh setting on a geometry entity was modified */ GEOMETRY_TOPOLOGY_MODIFIED, /* Both geometry and topology was modified. e.g. partitioned. */ TOPOLOGY_MODIFIED, /* The topology of a RefVolume or one of its sub-entities * was changed. Used for virtual topology. */ GEOMETRY_MODIFIED, /* The geometry of a RefEntity was altered. */ NEW_ENTITY_UNMERGED, /*A surface, curve, or vertex was unmerged. */ FREE_REF_ENTITY_GENERATED, /* A vertex that is not a part of a curve, * or a curve that is not a part of a surface, * was just generated */ TOP_LEVEL_ENTITY_DESTRUCTED, /* A body or free entity and all it's children * are about to be destructed. * The pointer is still valid at this point for all * calls except geometry queries. * The pointer can be cast to a higher level entity * if desired. */ ENTITY_NAME_CHANGED, /* the name for an entity changed */ ENTITY_GEOMETRY_COLOR_CHANGED, ENTITY_VISIBILITY_CHANGED, /* the visibility of an entity changed */ ENTITIES_MERGED, /* two entities are merged together. See MergeEvent. */ ID_SET, /* an entity had its id set (changed). See IdSetEvent. */ GROUP_MODIFIED, // Group was modified. Sent only once after all // modifications are complete. GEOMETRY_TRANSFORMED, VIRTUAL_STATUS_CHANGED };
GeometryEvent::GeometryEvent | ( | Type | type, |
RefEntity * | entity | ||
) |
Definition at line 4 of file GeometryEvent.cpp.
: mType(type), mRefEntity(entity) { }
Definition at line 9 of file GeometryEvent.cpp.
{ }
RefEntity * GeometryEvent::get_entity | ( | ) | const |
Definition at line 13 of file GeometryEvent.cpp.
{ return mRefEntity; }
GeometryEvent::Type GeometryEvent::get_type | ( | ) | const |
Definition at line 18 of file GeometryEvent.cpp.
{ return mType; }
RefEntity* GeometryEvent::mRefEntity [protected] |
Definition at line 82 of file GeometryEvent.hpp.
Type GeometryEvent::mType [protected] |
Definition at line 81 of file GeometryEvent.hpp.