Rhino C++ API  9.0
Public Member Functions | Friends | List of all members
ON_WorksessionLayerValues Class Reference

#include <opennurbs_worksession.h>

Public Member Functions

 ON_WorksessionLayerValues ()
 
 ON_WorksessionLayerValues (const ON_WorksessionLayerValues &src)
 
 ~ON_WorksessionLayerValues ()
 
ON_Color Color () const
 
const ON_Layer & Layer () const
 
bool Locked () const
 
ON_WorksessionLayerValues & operator= (const ON_WorksessionLayerValues &src)
 
void SetColor (ON_Color color)
 
void SetLayer (const ON_Layer &layer)
 
void SetLocked (bool bLocked)
 
void SetVisible (bool bVisible)
 
bool Visible () const
 Defaults: visible, unlocked, black. More...
 

Friends

class ON_WorksessionFile_Private
 

Detailed Description

Copyright (c) 1993-2026 Robert McNeel & Associates. All rights reserved. OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert McNeel & Associates.

THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.

For complete openNURBS copyright information see http://www.opennurbs.org. Description: Layer settings saved in a Rhino worksession (.rws) file.

Constructor & Destructor Documentation

◆ ON_WorksessionLayerValues() [1/2]

ON_WorksessionLayerValues::ON_WorksessionLayerValues ( )

◆ ~ON_WorksessionLayerValues()

ON_WorksessionLayerValues::~ON_WorksessionLayerValues ( )

◆ ON_WorksessionLayerValues() [2/2]

ON_WorksessionLayerValues::ON_WorksessionLayerValues ( const ON_WorksessionLayerValues &  src)

Member Function Documentation

◆ Color()

ON_Color ON_WorksessionLayerValues::Color ( ) const

◆ Layer()

const ON_Layer& ON_WorksessionLayerValues::Layer ( ) const

Returns: The rest of the layer's settings, saved by Rhino 9 and later. Reading an older file leaves this set to the default layer. Remarks: Rhino does not use this layer's id, and a layer saved without one gets a new id when it is read, as it does in a .3dm file.

◆ Locked()

bool ON_WorksessionLayerValues::Locked ( ) const

◆ operator=()

ON_WorksessionLayerValues& ON_WorksessionLayerValues::operator= ( const ON_WorksessionLayerValues &  src)

◆ SetColor()

void ON_WorksessionLayerValues::SetColor ( ON_Color  color)

◆ SetLayer()

void ON_WorksessionLayerValues::SetLayer ( const ON_Layer &  layer)

◆ SetLocked()

void ON_WorksessionLayerValues::SetLocked ( bool  bLocked)

◆ SetVisible()

void ON_WorksessionLayerValues::SetVisible ( bool  bVisible)

◆ Visible()

bool ON_WorksessionLayerValues::Visible ( ) const

Defaults: visible, unlocked, black.

Friends And Related Function Documentation

◆ ON_WorksessionFile_Private

friend class ON_WorksessionFile_Private
friend