|
Rhino C++ API
9.0
|
#include <opennurbs_worksession.h>
Public Member Functions | |
| ON_WorksessionModel () | |
| ON_WorksessionModel (const ON_WorksessionModel &src) | |
| ~ON_WorksessionModel () | |
| void | AppendLayerOverride (const ON_WorksessionLayerOverride &layer_override) |
| const ON_wString | FullPath () const |
| Full path of the model file, as saved. Nothing checks that it exists. More... | |
| bool | IsActive () const |
| const ON_WorksessionLayerOverride * | LayerOverride (int index) const |
| int | LayerOverrideCount () const |
| ON_WorksessionModel & | operator= (const ON_WorksessionModel &src) |
| const ON_WorksessionLayerValues & | ParentLayerValues () const |
| const ON_wString | RelativePath () const |
| void | RemoveAllLayerOverrides () |
| bool | RemoveLayerOverride (int index) |
| Returns false if index is out of range. More... | |
| void | SetActive (bool bActive) |
| void | SetFullPath (const wchar_t *full_path) |
| bool | SetLayerOverride (int index, const ON_WorksessionLayerOverride &layer_override) |
| Returns false if index is out of range. More... | |
| void | SetParentLayerValues (const ON_WorksessionLayerValues &values) |
| void | SetRelativePath (const wchar_t *relative_path) |
Friends | |
| class | ON_WorksessionFile_Private |
Description: A model in a Rhino worksession (.rws) file.
| ON_WorksessionModel::ON_WorksessionModel | ( | ) |
| ON_WorksessionModel::~ON_WorksessionModel | ( | ) |
| ON_WorksessionModel::ON_WorksessionModel | ( | const ON_WorksessionModel & | src | ) |
| void ON_WorksessionModel::AppendLayerOverride | ( | const ON_WorksessionLayerOverride & | layer_override | ) |
| const ON_wString ON_WorksessionModel::FullPath | ( | ) | const |
Full path of the model file, as saved. Nothing checks that it exists.
| bool ON_WorksessionModel::IsActive | ( | ) | const |
True for the model that was active when the worksession was saved. Every other model is a reference model.
| const ON_WorksessionLayerOverride* ON_WorksessionModel::LayerOverride | ( | int | index | ) | const |
Returns nullptr if index is out of range. The pointer is valid only until the list of layer overrides next changes.
| int ON_WorksessionModel::LayerOverrideCount | ( | ) | const |
Layer overrides for a reference model. Rhino does not save or use them for the active model. Version 4 files do not have them.
| ON_WorksessionModel& ON_WorksessionModel::operator= | ( | const ON_WorksessionModel & | src | ) |
| const ON_WorksessionLayerValues& ON_WorksessionModel::ParentLayerValues | ( | ) | const |
Settings of the layer Rhino adds as the parent of all of a reference model's layers. Version 4 files do not have them.
| const ON_wString ON_WorksessionModel::RelativePath | ( | ) | const |
Path of the model file relative to the .rws file, as saved. Rhino uses it when the file is no longer at FullPath(). It can be empty. Version 4 files do not have it.
| void ON_WorksessionModel::RemoveAllLayerOverrides | ( | ) |
| bool ON_WorksessionModel::RemoveLayerOverride | ( | int | index | ) |
Returns false if index is out of range.
| void ON_WorksessionModel::SetActive | ( | bool | bActive | ) |
| void ON_WorksessionModel::SetFullPath | ( | const wchar_t * | full_path | ) |
| bool ON_WorksessionModel::SetLayerOverride | ( | int | index, |
| const ON_WorksessionLayerOverride & | layer_override | ||
| ) |
Returns false if index is out of range.
| void ON_WorksessionModel::SetParentLayerValues | ( | const ON_WorksessionLayerValues & | values | ) |
| void ON_WorksessionModel::SetRelativePath | ( | const wchar_t * | relative_path | ) |
|
friend |
1.8.17