QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_Layer Class Reference

#include <opennurbs_layer.h>

Inheritance diagram for ON_Layer:
ON_Object

Public Member Functions

ON_Color Color () const
 
ON_Color Color (const ON_UUID &viewport_id) const
 
void CullPerViewportSettings (int viewport_id_count, const ON_UUID *viewport_id_list)
 
void Default ()
 
void DeletePerViewportColor (const ON_UUID &viewport_id)
 
void DeletePerViewportPlotColor (const ON_UUID &viewport_id)
 
void DeletePerViewportPlotWeight (const ON_UUID &viewport_id)
 
void DeletePerViewportSettings (const ON_UUID &viewport_id) const
 
void DeletePerViewportVisible (const ON_UUID &viewport_id)
 
void Dump (ON_TextLog &) const
 
bool HasPerViewportSettings (const ON_UUID &viewport_id) const
 
int IgesLevel () const
 
bool IsLocked () const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
bool IsVisible () const
 
bool IsVisible (const ON_UUID &viewport_id) const
 
bool IsVisibleAndLocked () const
 
bool IsVisibleAndNotLocked () const
 
int LayerIndex () const
 
const ON_wStringLayerName () const
 
int LinetypeIndex () const
 
ON_UUID ModelObjectId () const
 
ON::object_type ObjectType () const
 
 ON_Layer ()
 
ON__UINT32 PerViewportSettingsCRC () const
 
ON_Color PlotColor () const
 
ON_Color PlotColor (const ON_UUID &viewport_id) const
 
double PlotWeight () const
 
double PlotWeight (const ON_UUID &viewport_id) const
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
int RenderMaterialIndex () const
 
void SetColor (ON_Color layer_color)
 
void SetColor (ON_Color layer_color, const ON_UUID &viewport_id)
 
bool SetIgesLevel (int)
 
bool SetLayerIndex (int)
 
bool SetLayerName (const char *)
 
bool SetLayerName (const wchar_t *)
 
bool SetLinetypeIndex (int linetype_index)
 
void SetLocked (bool bLocked)
 
void SetPlotColor (ON_Color plot_color)
 
void SetPlotColor (ON_Color plot_color, const ON_UUID &viewport_id)
 
void SetPlotWeight (double plot_weight_mm)
 
void SetPlotWeight (double plot_weight_mm, const ON_UUID &viewport_id)
 
bool SetRenderMaterialIndex (int)
 
void SetVisible (bool bVisible)
 
void SetVisible (bool bVisible, const ON_UUID &viewport_id)
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
 ~ON_Layer ()
 
- Public Member Functions inherited from ON_Object
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
bool CopyFrom (const ON_Object *src)
 
void CopyUserData (const ON_Object &source_object)
 
virtual ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
virtual void DestroyRuntimeCache (bool bDelete=true)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
ON_UserDataFirstUserData () const
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual void MemoryRelocate ()
 
void MoveUserData (ON_Object &source_object)
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
void PurgeUserData ()
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
virtual unsigned int SizeOf () const
 
void TransformUserData (const ON_Xform &xform)
 
virtual ~ON_Object ()
 

Public Attributes

bool m_bExpanded
 
bool m_bLocked
 
bool m_bVisible
 
ON_Color m_color
 
ON_UUID m_display_material_id
 
int m_iges_level
 
ON_UUID m_layer_id
 
int m_layer_index
 
int m_linetype_index
 
int m_material_index
 
ON_wString m_name
 
ON_UUID m_parent_layer_id
 
ON_Color m_plot_color
 
double m_plot_weight_mm
 
ON_RenderingAttributes m_rendering_attributes
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Private Member Functions

 ON_OBJECT_DECLARE (ON_Layer)
 

Private Attributes

unsigned char m__runtime_flags
 

Constructor & Destructor Documentation

◆ ON_Layer()

ON_Layer::ON_Layer ( )

◆ ~ON_Layer()

ON_Layer::~ON_Layer ( )

Member Function Documentation

◆ Color() [1/2]

ON_Color ON_Layer::Color ( ) const

◆ Color() [2/2]

ON_Color ON_Layer::Color ( const ON_UUID & viewport_id) const

◆ CullPerViewportSettings()

void ON_Layer::CullPerViewportSettings ( int viewport_id_count,
const ON_UUID * viewport_id_list )

◆ Default()

void ON_Layer::Default ( )

◆ DeletePerViewportColor()

void ON_Layer::DeletePerViewportColor ( const ON_UUID & viewport_id)

◆ DeletePerViewportPlotColor()

void ON_Layer::DeletePerViewportPlotColor ( const ON_UUID & viewport_id)

◆ DeletePerViewportPlotWeight()

void ON_Layer::DeletePerViewportPlotWeight ( const ON_UUID & viewport_id)

◆ DeletePerViewportSettings()

void ON_Layer::DeletePerViewportSettings ( const ON_UUID & viewport_id) const

◆ DeletePerViewportVisible()

void ON_Layer::DeletePerViewportVisible ( const ON_UUID & viewport_id)

◆ Dump()

void ON_Layer::Dump ( ON_TextLog & dump) const
virtual

Reimplemented from ON_Object.

◆ HasPerViewportSettings()

bool ON_Layer::HasPerViewportSettings ( const ON_UUID & viewport_id) const

◆ IgesLevel()

int ON_Layer::IgesLevel ( ) const

◆ IsLocked()

bool ON_Layer::IsLocked ( ) const

◆ IsValid()

ON_BOOL32 ON_Layer::IsValid ( ON_TextLog * text_log = NULL) const
virtual

Implements ON_Object.

◆ IsVisible() [1/2]

bool ON_Layer::IsVisible ( ) const

◆ IsVisible() [2/2]

bool ON_Layer::IsVisible ( const ON_UUID & viewport_id) const

◆ IsVisibleAndLocked()

bool ON_Layer::IsVisibleAndLocked ( ) const

◆ IsVisibleAndNotLocked()

bool ON_Layer::IsVisibleAndNotLocked ( ) const

◆ LayerIndex()

int ON_Layer::LayerIndex ( ) const

◆ LayerName()

const ON_wString & ON_Layer::LayerName ( ) const

◆ LinetypeIndex()

int ON_Layer::LinetypeIndex ( ) const

◆ ModelObjectId()

ON_UUID ON_Layer::ModelObjectId ( ) const
virtual

Reimplemented from ON_Object.

◆ ObjectType()

ON::object_type ON_Layer::ObjectType ( ) const
virtual

Reimplemented from ON_Object.

◆ ON_OBJECT_DECLARE()

ON_Layer::ON_OBJECT_DECLARE ( ON_Layer )
private

◆ PerViewportSettingsCRC()

ON__UINT32 ON_Layer::PerViewportSettingsCRC ( ) const

◆ PlotColor() [1/2]

ON_Color ON_Layer::PlotColor ( ) const

◆ PlotColor() [2/2]

ON_Color ON_Layer::PlotColor ( const ON_UUID & viewport_id) const

◆ PlotWeight() [1/2]

double ON_Layer::PlotWeight ( ) const

◆ PlotWeight() [2/2]

double ON_Layer::PlotWeight ( const ON_UUID & viewport_id) const

◆ Read()

ON_BOOL32 ON_Layer::Read ( ON_BinaryArchive & file)
virtual

Reimplemented from ON_Object.

◆ RenderMaterialIndex()

int ON_Layer::RenderMaterialIndex ( ) const

◆ SetColor() [1/2]

void ON_Layer::SetColor ( ON_Color layer_color)

◆ SetColor() [2/2]

void ON_Layer::SetColor ( ON_Color layer_color,
const ON_UUID & viewport_id )

◆ SetIgesLevel()

bool ON_Layer::SetIgesLevel ( int level)

◆ SetLayerIndex()

bool ON_Layer::SetLayerIndex ( int i)

◆ SetLayerName() [1/2]

bool ON_Layer::SetLayerName ( const char * s)

◆ SetLayerName() [2/2]

bool ON_Layer::SetLayerName ( const wchar_t * s)

◆ SetLinetypeIndex()

bool ON_Layer::SetLinetypeIndex ( int linetype_index)

◆ SetLocked()

void ON_Layer::SetLocked ( bool bLocked)

◆ SetPlotColor() [1/2]

void ON_Layer::SetPlotColor ( ON_Color plot_color)

◆ SetPlotColor() [2/2]

void ON_Layer::SetPlotColor ( ON_Color plot_color,
const ON_UUID & viewport_id )

◆ SetPlotWeight() [1/2]

void ON_Layer::SetPlotWeight ( double plot_weight_mm)

◆ SetPlotWeight() [2/2]

void ON_Layer::SetPlotWeight ( double plot_weight_mm,
const ON_UUID & viewport_id )

◆ SetRenderMaterialIndex()

bool ON_Layer::SetRenderMaterialIndex ( int i)

◆ SetVisible() [1/2]

void ON_Layer::SetVisible ( bool bVisible)

◆ SetVisible() [2/2]

void ON_Layer::SetVisible ( bool bVisible,
const ON_UUID & viewport_id )

◆ Write()

ON_BOOL32 ON_Layer::Write ( ON_BinaryArchive & file) const
virtual

Reimplemented from ON_Object.

Member Data Documentation

◆ m__runtime_flags

unsigned char ON_Layer::m__runtime_flags
private

◆ m_bExpanded

bool ON_Layer::m_bExpanded

◆ m_bLocked

bool ON_Layer::m_bLocked

◆ m_bVisible

bool ON_Layer::m_bVisible

◆ m_color

ON_Color ON_Layer::m_color

◆ m_display_material_id

ON_UUID ON_Layer::m_display_material_id

◆ m_iges_level

int ON_Layer::m_iges_level

◆ m_layer_id

ON_UUID ON_Layer::m_layer_id

◆ m_layer_index

int ON_Layer::m_layer_index

◆ m_linetype_index

int ON_Layer::m_linetype_index

◆ m_material_index

int ON_Layer::m_material_index

◆ m_name

ON_wString ON_Layer::m_name

◆ m_parent_layer_id

ON_UUID ON_Layer::m_parent_layer_id

◆ m_plot_color

ON_Color ON_Layer::m_plot_color

◆ m_plot_weight_mm

double ON_Layer::m_plot_weight_mm

◆ m_rendering_attributes

ON_RenderingAttributes ON_Layer::m_rendering_attributes

The documentation for this class was generated from the following files: