![]() |
Polygon Crucher SDK - Documentation
Documentation
|
This class can be provided in C3DScene::Copy operations and allows to modify the created kind of class during the copy operation. More...
This class can be provided in C3DScene::Copy operations and allows to modify the created kind of class during the copy operation.
If you intend to overidde some specific class, such C3DPointList, you can create a copy of the scene that will use this new class. C3DPolygonCruncherObjectCreator typically does this, using C3DExtPointList for object instead of the standard C3DPointList.
#include <3DScene.h>
Public Member Functions | |
C3DObjectCreator (C3DScene *scene=NULL) | |
Destination scene to which the element is copied. | |
virtual C3DBaseObject * | ConvertToType (const C3DSceneNode *refnode, const C3DBaseObject *refobject) |
Convert refobject to another type. return the object itself if no conversion performed. | |
virtual C3DBaseObject * | GetNewObjectFrom (const C3DBaseObject *refobject, bool &emptyCopy) |
Return an object from the provided refobject. Returned object might be empty (empty points/faces/channels). In this case, object copy fills the returned empty object. | |
virtual bool | CanProcess (const C3DSceneNode *node, const C3DBaseObject *object) |
Return true if the node and its object should be copied / converted. | |
C3DScene * | GetScene () const |
Set the scene to which the copied object will belong to. The element GUID is updated. | |
void | SetScene (C3DScene *scene) |
Set the scene to which the copied object will belong to. The element GUID is updated. | |
CCustomData & | GetCustomData () |
Can be used to store some information. | |
overriden possibilities | |
The following methods are called to create the copy of the object It gives a chance to the copy method to copy the object to a different type | |
virtual C3DFaceList * | GetNewFaceList () |
virtual C3DPointList * | GetNewPointList () |
virtual C3DObject * | GetNewPolygonalObject () |
virtual C3DCurve * | GetNewCurveObject () |
virtual C3DPatch * | GetNewPatchObject () |
virtual C3DGroup * | GetNewGroupObject () |
virtual C3DDummy * | GetNewDummy () |
virtual C3DCamera * | GetNewCamera () |
virtual C3DLight * | GetNewLight () |
Destination scene to which the element is copied.
The element GUID will remain the same if the destination scene differs from the original scene, or if no scene (= NULL) is defined. If no scene is defined, the element is not attached to any scene until it is attached to the scene (using C3DScene::AddNode for example)
Reimplemented in C3DPolygonCruncherObjectCreator.