17 #if !defined(OPENNURBS_LAYER_INC_)
18 #define OPENNURBS_LAYER_INC_
166 per_viewport_none = 0,
169 per_viewport_color = 2,
170 per_viewport_plot_color = 4,
171 per_viewport_plot_weight = 8,
172 per_viewport_visible = 16,
173 per_viewport_persistent_visibility = 32,
175 per_viewport_all_settings = 0xFFFFFFFF
198 unsigned int settings_mask
229 ON_UUID destination_viewport_id
255 unsigned int settings_mask
281 int viewport_id_count,
282 const ON_UUID* viewport_id_list
839 no_layer_settings = 0,
840 userdata_settings = 1,
842 plot_color_settings = 4,
843 plot_weight_settings = 8,
844 visible_settings = 16,
845 locked_settings = 32,
846 all_layer_settings = 0xFFFFFFFF
868 void Set(
unsigned int settings,
const ON_Layer& settings_values );
934 unsigned char m_extension_bits;
void SetPerViewportVisible(ON_UUID viewport_id, bool bVisible)
bool CopyPerViewportSettings(ON_UUID source_viewport_id, ON_UUID destination_viewport_id)
unsigned int SavedSettings() const
static const wchar_t * LayerNamePathDelimiter()
ON_RenderingAttributes m_rendering_attributes
void UnsetPerViewportPersistentVisibility(ON_UUID viewport_id)
void SetPerViewportColor(ON_UUID viewport_id, ON_Color layer_color)
void SetPerViewportPersistentVisibility(ON_UUID viewport_id, bool bPersistentVisibility)
void DeletePerViewportSettings(const ON_UUID &viewport_id) const
bool SetRenderMaterialIndex(int)
static unsigned int Differences(const ON_Layer &layer0, const ON_Layer &layer1)
int UpdateViewportIds(const ON_UuidPairList &viewport_id_map)
bool HasPerViewportSettings(ON_UUID viewport_id, unsigned int settings_mask) const
ON_UUID m_parent_layer_id
static const wchar_t * LayerNameReferenceDelimiter()
void SetColor(ON_Color layer_color)
void SetPlotColor(ON_Color plot_color)
void DeletePerViewportColor(const ON_UUID &viewport_id)
ON_DEPRECATED void SetColor(ON_Color, const ON_UUID &)
ON_DEPRECATED ON_Color Color(const ON_UUID &) const
bool PersistentLocking() const
void DeletePerViewportPlotWeight(const ON_UUID &viewport_id)
ON_DEPRECATED void SetPlotWeight(double, const ON_UUID &)
bool HasPerViewportSettings(const ON_UUID &viewport_id) const
void DeletePerViewportPlotColor(const ON_UUID &viewport_id)
bool SetLinetypeIndex(int linetype_index)
void Set(unsigned int settings, const ON_Layer &settings_values)
void SetPersistentVisibility(bool bPersistentVisibility)
int RenderMaterialIndex() const
static bool RemoveReferenceName(const wchar_t *layer_name, ON_wString &layer_path_name)
bool IsVisibleAndNotLocked() const
void SetPersistentLocking(bool bPersistentLocking)
ON_DEPRECATED void SetPlotColor(ON_Color, const ON_UUID &)
void DeletePerViewportVisible(const ON_UUID &viewport_id)
void Dump(ON_TextLog &) const
void UnsetPersistentVisibility()
void SetPerViewportPlotColor(ON_UUID viewport_id, ON_Color plot_color)
ON_DEPRECATED bool IsVisible(const ON_UUID &) const
bool SetLayerName(const char *)
ON_DEPRECATED double PlotWeight(const ON_UUID &) const
ON_DEPRECATED ON_Color PlotColor(const ON_UUID &) const
void CullPerViewportSettings(int viewport_id_count, const ON_UUID *viewport_id_list)
void SetLocked(bool bLocked)
ON_BOOL32 Read(ON_BinaryArchive &)
static bool GetParentName(const wchar_t *layer_name, ON_wString &parent_path_name)
void SetPlotWeight(double plot_weight_mm)
ON_DEPRECATED void SetVisible(bool, const ON_UUID &)
void SetPerViewportPlotWeight(ON_UUID viewport_id, double plot_weight_mm)
ON_Color PerViewportPlotColor(ON_UUID viewport_id) const
static bool GetReferenceName(const wchar_t *layer_name, ON_wString &reference_name)
void SetVisible(bool bVisible)
bool GetSavedSettings(ON_Layer &layer, unsigned int &settings) const
ON_BOOL32 Write(ON_BinaryArchive &) const
ON_UUID m_display_material_id
void GetPerViewportVisibilityViewportIds(ON_SimpleArray< ON_UUID > &viewport_id_list) const
bool SetLayerName(const wchar_t *)
static bool GetLeafName(const wchar_t *layer_name, ON_wString &leaf_name)
bool CopyPerViewportSettings(const ON_Layer &source_layer, ON_UUID viewport_id, unsigned int settings_mask)
ON_UUID ModelObjectId() const
double PerViewportPlotWeight(ON_UUID viewport_id) const
ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const
bool PerViewportIsVisible(ON_UUID viewport_id) const
ON_Color PlotColor() const
double PlotWeight() const
ON_Color PerViewportColor(ON_UUID viewport_id) const
bool PerViewportPersistentVisibility(ON_UUID viewport_id) const
bool IsVisibleAndLocked() const
ON__UINT32 PerViewportSettingsCRC() const
int LinetypeIndex() const
bool PersistentVisibility() const
ON::object_type ObjectType() const
void UnsetPersistentLocking()
const ON_wString & LayerName() const
void SaveSettings(unsigned int settings, bool bUpdate)