28 #ifndef ComponentDefinition_hpp 29 #define ComponentDefinition_hpp 33 #include <SketchUpAPI/model/component_definition.h> 35 #include "SUAPI-CppWrapper/model/DrawingElement.hpp" 41 class ComponentInstance;
54 static SUComponentDefinitionRef create_definition();
89 SUComponentDefinitionRef
ref()
const;
90 operator SUComponentDefinitionRef()
const;
91 operator SUComponentDefinitionRef*();
144 std::vector<ComponentInstance>
instances()
const;
156 std::vector<Opening>
openings()
const;
162 SUComponentBehavior m_behavior;
167 SUComponentBehavior::SUSnapToBehavior &snap = m_behavior.component_snap;
169 SUComponentBehavior
ref()
const;
171 bool &cuts_opening = m_behavior.component_cuts_opening;
173 bool &always_face_camera = m_behavior.component_always_face_camera;
175 bool &shadows_face_sun = m_behavior.component_shadows_face_sun;
177 size_t &no_scale_mask = m_behavior.component_no_scale_mask;
ComponentInstance create_instance() const
SUComponentDefinitionRef ref() const
std::vector< Opening > openings() const
bool attached() const
Returns true if the entity is attached to another object.
size_t num_instances() const
Entities entities() const
size_t num_openings() const
Behavior behavior() const
ComponentDefinition & operator=(const ComponentDefinition &other)
size_t num_used_instances() const
std::vector< ComponentInstance > instances() const