![]() |
|
A Component Instance class. More...
#include <icomponentinstance.h>
Public Member Functions | |
virtual ISketchUpEntityVectorPtr | Explode ()=0 |
Explodes this Component Instance into its constituent pieces. | |
virtual ISketchUpComponentDefinitionPtr | GetComponentDefinition () const =0 |
Retrieves this instance's defintion. | |
virtual atlast::geometry::CTransformation | GetTransformation () const =0 |
Retrieves the transformation associated with this instance. | |
virtual void | SetTransform (const atlast::geometry::CTransformation &trans)=0 |
Sets the transform of the component instance relative its definition. |
A Component Instance class.
virtual ISketchUpEntityVectorPtr atlast::sketchup::ISketchUpComponentInstance::Explode | ( | ) | [pure virtual] |
Explodes this Component Instance into its constituent pieces.
virtual ISketchUpComponentDefinitionPtr atlast::sketchup::ISketchUpComponentInstance::GetComponentDefinition | ( | ) | const [pure virtual] |
Retrieves this instance's defintion.
virtual atlast::geometry::CTransformation atlast::sketchup::ISketchUpComponentInstance::GetTransformation | ( | ) | const [pure virtual] |
Retrieves the transformation associated with this instance.
The actual geometry associated with this instance is obtained via the definition (see GetComponentDefinition()) and this transform.
To transform this instance, use the ISketchUpController::Transform() method.
virtual void atlast::sketchup::ISketchUpComponentInstance::SetTransform | ( | const atlast::geometry::CTransformation & | trans | ) | [pure virtual] |
Sets the transform of the component instance relative its definition.
This method should be contrasted with ISketchUpController::Transform(), where the component instance would be transformed from its current location by the given transformation. In this case, its current location is overwritten, and its location - relative to its definition - is set explicitly.
This method is particularly useful when creating new component instances, such as in the case of writing an Importer.
trans | The transform from the definition to the desired location of the instance. |
©2010 Google - Google Home - About Google |