16#if !defined(OPENNURBS_LAYER_INC_)
17#define OPENNURBS_LAYER_INC_
74 bool SetLayerName(
const char* );
75 bool SetLayerName(
const wchar_t* );
87 bool HasPerViewportSettings(
100 void DeletePerViewportSettings(
113 void CullPerViewportSettings(
114 int viewport_id_count,
115 const ON_UUID* viewport_id_list
137 void SetColor(
ON_Color layer_color );
162 void DeletePerViewportColor(
const ON_UUID& viewport_id );
175 void SetPlotColor(
ON_Color plot_color );
200 void DeletePerViewportPlotColor(
const ON_UUID& viewport_id );
210 bool SetLinetypeIndex(
int linetype_index );
217 int LinetypeIndex()
const;
227 bool IsVisible()
const;
239 bool IsVisible(
const ON_UUID& viewport_id )
const;
253 void SetVisible(
bool bVisible );
254 void SetVisible(
bool bVisible,
const ON_UUID& viewport_id );
266 void DeletePerViewportVisible(
const ON_UUID& viewport_id );
274 bool IsLocked()
const;
285 void SetLocked(
bool bLocked );
291 bool IsVisibleAndNotLocked()
const;
297 bool IsVisibleAndLocked()
const;
305 bool SetRenderMaterialIndex(
int );
306 int RenderMaterialIndex()
const;
308 bool SetLayerIndex(
int );
309 int LayerIndex()
const;
311 bool SetIgesLevel(
int );
312 int IgesLevel()
const;
322 double PlotWeight()
const;
323 double PlotWeight(
const ON_UUID& viewport_id )
const;
333 void SetPlotWeight(
double plot_weight_mm);
334 void SetPlotWeight(
double plot_weight_mm,
const ON_UUID& viewport_id );
346 void DeletePerViewportPlotWeight(
const ON_UUID& viewport_id );
Definition opennurbs_archive.h:152
Definition opennurbs_color.h:24
Definition opennurbs_layer.h:20
ON_RenderingAttributes m_rendering_attributes
Definition opennurbs_layer.h:377
bool m_bVisible
Definition opennurbs_layer.h:401
ON_Color m_color
Definition opennurbs_layer.h:390
ON_UUID m_parent_layer_id
Definition opennurbs_layer.h:352
bool m_bLocked
Definition opennurbs_layer.h:402
double m_plot_weight_mm
Definition opennurbs_layer.h:396
int m_material_index
Definition opennurbs_layer.h:376
ON_Color m_plot_color
Definition opennurbs_layer.h:394
bool m_bExpanded
Definition opennurbs_layer.h:403
unsigned char m__runtime_flags
Definition opennurbs_layer.h:411
int m_iges_level
Definition opennurbs_layer.h:358
int m_linetype_index
Definition opennurbs_layer.h:379
ON_UUID m_display_material_id
Definition opennurbs_layer.h:391
ON_OBJECT_DECLARE(ON_Layer)
ON_UUID m_layer_id
Definition opennurbs_layer.h:351
int m_layer_index
Definition opennurbs_layer.h:350
ON_wString m_name
Definition opennurbs_layer.h:399
Definition opennurbs_object.h:393
virtual void Dump(ON_TextLog &) const
Definition opennurbs_object.cpp:1695
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
Definition opennurbs_object.cpp:1734
virtual ON_UUID ModelObjectId() const
Definition opennurbs_object.cpp:1622
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
Definition opennurbs_object.cpp:1714
virtual ON::object_type ObjectType() const
Definition opennurbs_object.cpp:1616
Definition opennurbs_rendering.h:21
Definition opennurbs_textlog.h:20
Definition opennurbs_uuid.h:31
Definition opennurbs_string.h:392
#define ON_CLASS
Definition opennurbs_defines.h:91
#define NULL
Definition opennurbs_system.h:256
int ON_BOOL32
Definition opennurbs_system.h:362
unsigned int ON__UINT32
Definition opennurbs_system.h:326