Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
ON_Layer Class Reference

#include <opennurbs_layer.h>

Inheritance diagram for ON_Layer:
Inheritance graph
[legend]

List of all members.

Public Types

enum  LAYER_SETTINGS {
  no_layer_settings = 0, userdata_settings = 1, color_settings = 2, plot_color_settings = 4,
  plot_weight_settings = 8, visible_settings = 16, locked_settings = 32, all_layer_settings = 0xFFFFFFFF
}
enum  PER_VIEWPORT_SETTINGS {
  per_viewport_none = 0, per_viewport_id = 1, per_viewport_color = 2, per_viewport_plot_color = 4,
  per_viewport_plot_weight = 8, per_viewport_visible = 16, per_viewport_persistent_visibility = 32, per_viewport_all_settings = 0xFFFFFFFF
}

Public Member Functions

ON_Color Color () const
ON_DEPRECATED ON_Color Color (const ON_UUID &) const
bool CopyPerViewportSettings (ON_UUID source_viewport_id, ON_UUID destination_viewport_id)
bool CopyPerViewportSettings (const ON_Layer &source_layer, ON_UUID viewport_id, unsigned int settings_mask)
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
void GetPerViewportVisibilityViewportIds (ON_SimpleArray< ON_UUID > &viewport_id_list) const
bool GetSavedSettings (ON_Layer &layer, unsigned int &settings) const
bool HasPerViewportSettings (ON_UUID viewport_id, unsigned int settings_mask) 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
ON_DEPRECATED bool IsVisible (const ON_UUID &) 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 ()
bool PersistentLocking () const
bool PersistentVisibility () const
ON_Color PerViewportColor (ON_UUID viewport_id) const
bool PerViewportIsVisible (ON_UUID viewport_id) const
bool PerViewportPersistentVisibility (ON_UUID viewport_id) const
ON_Color PerViewportPlotColor (ON_UUID viewport_id) const
double PerViewportPlotWeight (ON_UUID viewport_id) const
ON__UINT32 PerViewportSettingsCRC () const
ON_Color PlotColor () const
ON_DEPRECATED ON_Color PlotColor (const ON_UUID &) const
double PlotWeight () const
ON_DEPRECATED double PlotWeight (const ON_UUID &) const
ON_BOOL32 Read (ON_BinaryArchive &)
int RenderMaterialIndex () const
unsigned int SavedSettings () const
void SaveSettings (unsigned int settings, bool bUpdate)
void Set (unsigned int settings, const ON_Layer &settings_values)
void SetColor (ON_Color layer_color)
ON_DEPRECATED void SetColor (ON_Color, const ON_UUID &)
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 SetPersistentLocking (bool bPersistentLocking)
void SetPersistentVisibility (bool bPersistentVisibility)
void SetPerViewportColor (ON_UUID viewport_id, ON_Color layer_color)
void SetPerViewportPersistentVisibility (ON_UUID viewport_id, bool bPersistentVisibility)
void SetPerViewportPlotColor (ON_UUID viewport_id, ON_Color plot_color)
void SetPerViewportPlotWeight (ON_UUID viewport_id, double plot_weight_mm)
void SetPerViewportVisible (ON_UUID viewport_id, bool bVisible)
void SetPlotColor (ON_Color plot_color)
ON_DEPRECATED void SetPlotColor (ON_Color, const ON_UUID &)
void SetPlotWeight (double plot_weight_mm)
ON_DEPRECATED void SetPlotWeight (double, const ON_UUID &)
bool SetRenderMaterialIndex (int)
void SetVisible (bool bVisible)
ON_DEPRECATED void SetVisible (bool, const ON_UUID &)
void UnsetPersistentLocking ()
void UnsetPersistentVisibility ()
void UnsetPerViewportPersistentVisibility (ON_UUID viewport_id)
int UpdateViewportIds (const ON_UuidPairList &viewport_id_map)
ON_BOOL32 Write (ON_BinaryArchive &) const
 ~ON_Layer ()

Static Public Member Functions

static unsigned int Differences (const ON_Layer &layer0, const ON_Layer &layer1)
static bool GetLeafName (const wchar_t *layer_name, ON_wString &leaf_name)
static bool GetParentName (const wchar_t *layer_name, ON_wString &parent_path_name)
static bool GetReferenceName (const wchar_t *layer_name, ON_wString &reference_name)
static const wchar_t * LayerNamePathDelimiter ()
static const wchar_t * LayerNameReferenceDelimiter ()
static bool RemoveReferenceName (const wchar_t *layer_name, ON_wString &layer_path_name)

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

Private Member Functions

 ON_OBJECT_DECLARE (ON_Layer)

Private Attributes

unsigned char m_extension_bits

Detailed Description

Definition at line 20 of file opennurbs_layer.h.


Member Enumeration Documentation

Enumerator:
no_layer_settings 
userdata_settings 
color_settings 
plot_color_settings 
plot_weight_settings 
visible_settings 
locked_settings 
all_layer_settings 

Definition at line 837 of file opennurbs_layer.h.

Enumerator:
per_viewport_none 
per_viewport_id 
per_viewport_color 
per_viewport_plot_color 
per_viewport_plot_weight 
per_viewport_visible 
per_viewport_persistent_visibility 
per_viewport_all_settings 

Definition at line 164 of file opennurbs_layer.h.


Constructor & Destructor Documentation

Definition at line 24 of file opennurbs_layer.cpp.

Definition at line 50 of file opennurbs_layer.cpp.


Member Function Documentation

Definition at line 554 of file opennurbs_layer.cpp.

ON_Color ON_Layer::Color ( const ON_UUID viewport_id) const

Definition at line 1411 of file opennurbs_layer.cpp.

bool ON_Layer::CopyPerViewportSettings ( ON_UUID  source_viewport_id,
ON_UUID  destination_viewport_id 
)

Definition at line 1855 of file opennurbs_layer.cpp.

bool ON_Layer::CopyPerViewportSettings ( const ON_Layer source_layer,
ON_UUID  viewport_id,
unsigned int  settings_mask 
)

Definition at line 1883 of file opennurbs_layer.cpp.

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

Definition at line 1945 of file opennurbs_layer.cpp.

Definition at line 30 of file opennurbs_layer.cpp.

void ON_Layer::DeletePerViewportColor ( const ON_UUID viewport_id)

Definition at line 1640 of file opennurbs_layer.cpp.

void ON_Layer::DeletePerViewportPlotColor ( const ON_UUID viewport_id)

Definition at line 1672 of file opennurbs_layer.cpp.

void ON_Layer::DeletePerViewportPlotWeight ( const ON_UUID viewport_id)

Definition at line 1725 of file opennurbs_layer.cpp.

void ON_Layer::DeletePerViewportSettings ( const ON_UUID viewport_id) const

Definition at line 1930 of file opennurbs_layer.cpp.

void ON_Layer::DeletePerViewportVisible ( const ON_UUID viewport_id)

Definition at line 1757 of file opennurbs_layer.cpp.

unsigned int ON_Layer::Differences ( const ON_Layer layer0,
const ON_Layer layer1 
) [static]

Definition at line 2005 of file opennurbs_layer.cpp.

void ON_Layer::Dump ( ON_TextLog dump) const [virtual]

Reimplemented from ON_Object.

Definition at line 271 of file opennurbs_layer.cpp.

bool ON_Layer::GetLeafName ( const wchar_t *  layer_name,
ON_wString leaf_name 
) [static]

Definition at line 199 of file opennurbs_layer.cpp.

bool ON_Layer::GetParentName ( const wchar_t *  layer_name,
ON_wString parent_path_name 
) [static]

Definition at line 212 of file opennurbs_layer.cpp.

Definition at line 1791 of file opennurbs_layer.cpp.

bool ON_Layer::GetReferenceName ( const wchar_t *  layer_name,
ON_wString reference_name 
) [static]

Definition at line 251 of file opennurbs_layer.cpp.

bool ON_Layer::GetSavedSettings ( ON_Layer layer,
unsigned int &  settings 
) const

Definition at line 2364 of file opennurbs_layer.cpp.

bool ON_Layer::HasPerViewportSettings ( ON_UUID  viewport_id,
unsigned int  settings_mask 
) const

Definition at line 1822 of file opennurbs_layer.cpp.

bool ON_Layer::HasPerViewportSettings ( const ON_UUID viewport_id) const

Definition at line 1817 of file opennurbs_layer.cpp.

int ON_Layer::IgesLevel ( ) const

Definition at line 666 of file opennurbs_layer.cpp.

bool ON_Layer::IsLocked ( ) const

Definition at line 622 of file opennurbs_layer.cpp.

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

Implements ON_Object.

Definition at line 71 of file opennurbs_layer.cpp.

bool ON_Layer::IsVisible ( ) const

Definition at line 579 of file opennurbs_layer.cpp.

bool ON_Layer::IsVisible ( const ON_UUID viewport_id) const

Definition at line 1540 of file opennurbs_layer.cpp.

Definition at line 632 of file opennurbs_layer.cpp.

Definition at line 627 of file opennurbs_layer.cpp.

int ON_Layer::LayerIndex ( ) const

Definition at line 654 of file opennurbs_layer.cpp.

const ON_wString & ON_Layer::LayerName ( ) const

Definition at line 539 of file opennurbs_layer.cpp.

const wchar_t * ON_Layer::LayerNamePathDelimiter ( ) [static]

Definition at line 119 of file opennurbs_layer.cpp.

const wchar_t * ON_Layer::LayerNameReferenceDelimiter ( ) [static]

Definition at line 114 of file opennurbs_layer.cpp.

int ON_Layer::LinetypeIndex ( ) const

Definition at line 574 of file opennurbs_layer.cpp.

ON_UUID ON_Layer::ModelObjectId ( ) const [virtual]

Reimplemented from ON_Object.

Definition at line 1580 of file opennurbs_object.cpp.

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

Reimplemented from ON_Object.

Definition at line 518 of file opennurbs_layer.cpp.

Definition at line 2436 of file opennurbs_layer.cpp.

Definition at line 2404 of file opennurbs_layer.cpp.

Definition at line 1399 of file opennurbs_layer.cpp.

bool ON_Layer::PerViewportIsVisible ( ON_UUID  viewport_id) const

Definition at line 1502 of file opennurbs_layer.cpp.

Definition at line 1576 of file opennurbs_layer.cpp.

Definition at line 1441 of file opennurbs_layer.cpp.

double ON_Layer::PerViewportPlotWeight ( ON_UUID  viewport_id) const

Definition at line 1485 of file opennurbs_layer.cpp.

Definition at line 1983 of file opennurbs_layer.cpp.

Definition at line 559 of file opennurbs_layer.cpp.

ON_Color ON_Layer::PlotColor ( const ON_UUID viewport_id) const

Definition at line 1455 of file opennurbs_layer.cpp.

double ON_Layer::PlotWeight ( ) const

Definition at line 671 of file opennurbs_layer.cpp.

double ON_Layer::PlotWeight ( const ON_UUID viewport_id) const

Definition at line 1496 of file opennurbs_layer.cpp.

ON_BOOL32 ON_Layer::Read ( ON_BinaryArchive file) [virtual]

Reimplemented from ON_Object.

Definition at line 393 of file opennurbs_layer.cpp.

bool ON_Layer::RemoveReferenceName ( const wchar_t *  layer_name,
ON_wString layer_path_name 
) [static]

Definition at line 239 of file opennurbs_layer.cpp.

Definition at line 643 of file opennurbs_layer.cpp.

unsigned int ON_Layer::SavedSettings ( ) const

Definition at line 2358 of file opennurbs_layer.cpp.

void ON_Layer::SaveSettings ( unsigned int  settings,
bool  bUpdate 
)

Definition at line 2313 of file opennurbs_layer.cpp.

void ON_Layer::Set ( unsigned int  settings,
const ON_Layer settings_values 
)

Definition at line 2063 of file opennurbs_layer.cpp.

void ON_Layer::SetColor ( ON_Color  layer_color)

Definition at line 544 of file opennurbs_layer.cpp.

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

Definition at line 1394 of file opennurbs_layer.cpp.

bool ON_Layer::SetIgesLevel ( int  level)

Definition at line 660 of file opennurbs_layer.cpp.

bool ON_Layer::SetLayerIndex ( int  i)

Definition at line 648 of file opennurbs_layer.cpp.

bool ON_Layer::SetLayerName ( const char *  s)

Definition at line 527 of file opennurbs_layer.cpp.

bool ON_Layer::SetLayerName ( const wchar_t *  s)

Definition at line 533 of file opennurbs_layer.cpp.

bool ON_Layer::SetLinetypeIndex ( int  linetype_index)

Definition at line 564 of file opennurbs_layer.cpp.

void ON_Layer::SetLocked ( bool  bLocked)

Definition at line 603 of file opennurbs_layer.cpp.

void ON_Layer::SetPersistentLocking ( bool  bPersistentLocking)

Definition at line 2452 of file opennurbs_layer.cpp.

void ON_Layer::SetPersistentVisibility ( bool  bPersistentVisibility)

Definition at line 2420 of file opennurbs_layer.cpp.

void ON_Layer::SetPerViewportColor ( ON_UUID  viewport_id,
ON_Color  layer_color 
)

Definition at line 1373 of file opennurbs_layer.cpp.

void ON_Layer::SetPerViewportPersistentVisibility ( ON_UUID  viewport_id,
bool  bPersistentVisibility 
)

Definition at line 1601 of file opennurbs_layer.cpp.

void ON_Layer::SetPerViewportPlotColor ( ON_UUID  viewport_id,
ON_Color  plot_color 
)

Definition at line 1416 of file opennurbs_layer.cpp.

void ON_Layer::SetPerViewportPlotWeight ( ON_UUID  viewport_id,
double  plot_weight_mm 
)

Definition at line 1460 of file opennurbs_layer.cpp.

void ON_Layer::SetPerViewportVisible ( ON_UUID  viewport_id,
bool  bVisible 
)

Definition at line 1550 of file opennurbs_layer.cpp.

void ON_Layer::SetPlotColor ( ON_Color  plot_color)

Definition at line 549 of file opennurbs_layer.cpp.

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

Definition at line 1436 of file opennurbs_layer.cpp.

void ON_Layer::SetPlotWeight ( double  plot_weight_mm)

Definition at line 676 of file opennurbs_layer.cpp.

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

Definition at line 1480 of file opennurbs_layer.cpp.

Definition at line 637 of file opennurbs_layer.cpp.

void ON_Layer::SetVisible ( bool  bVisible)

Definition at line 584 of file opennurbs_layer.cpp.

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

Definition at line 1545 of file opennurbs_layer.cpp.

Definition at line 2462 of file opennurbs_layer.cpp.

Definition at line 2430 of file opennurbs_layer.cpp.

Definition at line 1615 of file opennurbs_layer.cpp.

int ON_Layer::UpdateViewportIds ( const ON_UuidPairList viewport_id_map)

Definition at line 1704 of file opennurbs_layer.cpp.

ON_BOOL32 ON_Layer::Write ( ON_BinaryArchive file) const [virtual]

Reimplemented from ON_Object.

Definition at line 285 of file opennurbs_layer.cpp.


Member Data Documentation

Definition at line 828 of file opennurbs_layer.h.

Definition at line 827 of file opennurbs_layer.h.

Definition at line 826 of file opennurbs_layer.h.

Definition at line 815 of file opennurbs_layer.h.

Definition at line 816 of file opennurbs_layer.h.

unsigned char ON_Layer::m_extension_bits [private]

Definition at line 934 of file opennurbs_layer.h.

Definition at line 783 of file opennurbs_layer.h.

Definition at line 776 of file opennurbs_layer.h.

Definition at line 775 of file opennurbs_layer.h.

Definition at line 804 of file opennurbs_layer.h.

Definition at line 801 of file opennurbs_layer.h.

Definition at line 824 of file opennurbs_layer.h.

Definition at line 777 of file opennurbs_layer.h.

Definition at line 819 of file opennurbs_layer.h.

Definition at line 821 of file opennurbs_layer.h.

Definition at line 802 of file opennurbs_layer.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:52