32 #include "SUAPI-CppWrapper/model/Entity.hpp" 34 #include <SketchUpAPI/model/material.h> 45 static SUMaterialRef create_material();
52 static SUMaterialRef copy_reference(
const Material& mat);
69 SUMaterialRef ref()
const;
71 operator SUMaterialRef()
const;
72 operator SUMaterialRef*();
123 void opacity(
const double alpha);
138 SUMaterialType
type()
const;
143 void type(
const SUMaterialType& material_type);
164 template <>
struct hash<
CW::Material>
168 static const size_t shift = (size_t)log2(1 +
sizeof(
CW::Material));
169 return (
size_t)(k.
m_entity.ptr) >> shift;
Material & operator=(const Material &other)
bool attached() const
Returns true if the entity is attached to another object.
SUEntityRef m_entity
The C SUEntityRef that this class wraps.
String display_name() const
SUMaterialType type() const