SUAPI-CppWrapper
C++WrapperforSketchUpCAPI
|
Public Member Functions | |
InstancePath () | |
InstancePath (SUInstancePathRef instance_path) | |
InstancePath (const InstancePath &other) | |
~InstancePath () | |
InstancePath & | operator= (const InstancePath &other) |
SUInstancePathRef | ref () const |
operator SUInstancePathRef () const | |
operator SUInstancePathRef * () | |
InstancePath & | push (const ComponentInstance &instance) |
InstancePath & | pop () |
InstancePath & | set_leaf (const Entity &entity) |
size_t | depth () const |
size_t | full_depth () const |
Transformation | total_transformation () const |
Transformation | transformation_at_depth (size_t depth) const |
ComponentInstance | instance_at_depth (size_t depth) const |
Entity | leaf_entity () const |
DrawingElement | leaf () const |
bool | valid () const |
bool | empty () const |
bool | contains (const Entity &entity) const |
String | persistent_id () const |
String | persistent_id_at_depth (size_t depth) const |
Definition at line 48 of file InstancePath.hpp.
CW::InstancePath::InstancePath | ( | ) |
Constructor for empty InstancePath value
Definition at line 58 of file InstancePath.cpp.
CW::InstancePath::InstancePath | ( | const InstancePath & | other | ) |
Copy constructor
Definition at line 68 of file InstancePath.cpp.
CW::InstancePath::~InstancePath | ( | ) |
Destructor
Definition at line 73 of file InstancePath.cpp.
bool CW::InstancePath::contains | ( | const Entity & | entity | ) | const |
Checks if instance path contains a particular entity.
entity | - The entity object. |
Definition at line 196 of file InstancePath.cpp.
size_t CW::InstancePath::depth | ( | ) | const |
Gets a path depth for InstancePath. It only counts the component instances in the path, so the leaf node is not counted.
Definition at line 123 of file InstancePath.cpp.
bool CW::InstancePath::empty | ( | ) | const |
Checks if an instance path is empty.
Definition at line 188 of file InstancePath.cpp.
size_t CW::InstancePath::full_depth | ( | ) | const |
Gets the full path depth (including the leaf) for InstancePath.
Definition at line 131 of file InstancePath.cpp.
ComponentInstance CW::InstancePath::instance_at_depth | ( | size_t | depth | ) | const |
Gets a component instance up to path depth level.
depth | - The depth for getting drawing element up to. |
Definition at line 155 of file InstancePath.cpp.
DrawingElement CW::InstancePath::leaf | ( | ) | const |
Gets a leaf from an entity path as a drawing element object.
Definition at line 172 of file InstancePath.cpp.
Entity CW::InstancePath::leaf_entity | ( | ) | const |
Gets a leaf from an instance path as an entity object.
Definition at line 164 of file InstancePath.cpp.
InstancePath & CW::InstancePath::operator= | ( | const InstancePath & | other | ) |
Copy assignment operator
Definition at line 79 of file InstancePath.cpp.
String CW::InstancePath::persistent_id | ( | ) | const |
Retrieves the full persistent id for a given instance path.
Definition at line 204 of file InstancePath.cpp.
String CW::InstancePath::persistent_id_at_depth | ( | size_t | depth | ) | const |
Retrieves the persistent id of an entity up to depth level in a given instance path.
depth | - The depth for getting persistent id up to. |
Definition at line 214 of file InstancePath.cpp.
InstancePath & CW::InstancePath::pop | ( | ) |
Pops the last ComponentInstance from an InstancePath.
Definition at line 109 of file InstancePath.cpp.
InstancePath & CW::InstancePath::push | ( | const ComponentInstance & | instance | ) |
Pushes a ComponentInstance to an InstancePath.
instance | The component instance object. |
Definition at line 102 of file InstancePath.cpp.
InstancePath & CW::InstancePath::set_leaf | ( | const Entity & | entity | ) |
Sets an Entity to an InstancePath.
entity | - The entity to be set as a leaf in instance path. |
Definition at line 116 of file InstancePath.cpp.
Transformation CW::InstancePath::total_transformation | ( | ) | const |
Gets the transform for InstancePath.
Definition at line 139 of file InstancePath.cpp.
Transformation CW::InstancePath::transformation_at_depth | ( | size_t | depth | ) | const |
Gets the transform up to depth level for InstancePath.
depth | - The depth for getting transforms up to. |
Definition at line 147 of file InstancePath.cpp.
bool CW::InstancePath::valid | ( | ) | const |
Validates an instance path.
Definition at line 180 of file InstancePath.cpp.