Rhino C++ API
8.14
|
#include <rhinoSdkDocProperties.h>
Public Member Functions | |
CRhinoDocProperties () | |
virtual | ~CRhinoDocProperties () |
int | AddNamedConstructionPlane (const ON_3dmConstructionPlane &named_cplane) |
int | AddNamedView (const ON_3dmView &named_view) |
ON_Color | AmbientLightColor (bool from_doc=false) const |
const ON_MeshParameters & | AnalysisMeshSettings () const |
settings used for automatically created analysis meshes More... | |
bool | AnimatedSunAtFrame (const ON_3dmAnimationProperties &ap, int iFrame, ON_Light &sun) |
bool | AnimatedViewAtFrame (const ON_3dmAnimationProperties &ap, int iFrame, ON_Viewport &vp) |
const ON_3dmAnimationProperties & | AnimationProperties () |
ON_Color | BackgroundColor (bool from_doc=false) const |
ON_Color | CurrentColor () const |
ON::object_color_source | CurrentColorSource () const |
const ON::object_material_source | CurrentMaterialSource () const |
TODO: ?Are these handled in CRhinoDoc? More... | |
int | CurrentWireDensity () const |
const ON_MeshParameters & | CustomRenderMeshSettings () const |
void | Default () |
bool | DeleteSnapshot (const wchar_t *wszName) |
ON_UUID | DimensionLayerId () const |
bool | DisplayCurvesAndIsocurvesInRenderedViews (bool from_doc=false) const |
bool | DisplayTextAndDimensionsInRenderedViews (bool from_doc=false) const |
CRhinoDoc * | Doc () |
ON_EarthAnchorPoint | EarthAnchorPoint () const |
void | EnableHatchScaling (bool b=true) |
void | EnableLayoutSpaceAnnotationScaling (bool b=true) |
void | EnableModelSpaceAnnotationScaling (bool b=true) |
CRhinoAnnotationSettingsEx | GetAnnotationSettings () const |
void | GetCurrentSettings (ON_3dmSettings &settings) const |
void | GetCustomRenderSizes (ON_SimpleArray< ON_2iSize > &sizes) |
bool | GetNamedViewSelection (ON_ClassArray< ON_wString > &named_views) const |
BOOL32 | GetON_3dmAnnotationSettings (ON_3dmAnnotationSettings &settings) const |
const ON_3dmConstructionPlaneGridDefaults & | GridDefaults () const |
default settings for construction plane grids More... | |
ON_3dmIOSettings | IOSettings () const |
bool | IsHatchScalingEnabled () const |
bool | IsLayoutSpaceAnnotationScalingEnabled () const |
bool | IsModelSpaceAnnotationScalingEnabled () const |
[Lowell - 3-28-2017] These are 2 new fields to replace the one previously used More... | |
const ON_MeshParameters & | MeshParameters (ON_MeshParameters::MESH_STYLE mesh_style) const |
ON_3dPoint | ModelBasepoint () const |
const wchar_t * | ModelName () const |
const ON_UnitSystem & | ModelUnits () const |
model space tolerances and unit system More... | |
const ON_3dmUnitsAndTolerances & | ModelUnitsAndTolerances () const |
const wchar_t * | ModelURL () |
bool | MoveNamedConstructionPlane (int cplane_index, int cplane_index_before) |
bool | MoveNamedView (int view_index, int view_index_before) |
const ON_3dmConstructionPlane * | NamedConstructionPlane (const wchar_t *name) const |
const ON_3dmView* View( int) const; More... | |
const ON_3dmConstructionPlane * | NamedConstructionPlane (int) const |
int | NamedConstructionPlaneIndex (const ON_3dmConstructionPlane *cplane) const |
const ON_3dmView * | NamedView (const wchar_t *name) const |
const ON_3dmView * | NamedView (int) const |
int | NamedViewCount () const |
int | NamedViewIndex (const ON_3dmView *view) const |
const ON_3dmNotes & | Notes () const |
const ON_UnitSystem & | PageUnits () const |
page space tolerances and unit system More... | |
const ON_3dmUnitsAndTolerances & | PageUnitsAndTolerances () const |
BOOL32 | RemoveNamedConstructionPlane (int cplane_index) |
BOOL32 | RemoveNamedView (int view_index) |
bool | RenameSnapshot (const wchar_t *wszNameOld, const wchar_t *wszNameNew) |
const ON_MeshParameters & | RenderMeshParameters () const |
const ON_MeshParameters & | RenderMeshSettings () const |
ON_MeshParameters::MESH_STYLE | RenderMeshStyle () const |
const ON_3dmRenderSettings & | RenderSettings () const |
bool | RestoreSnapshot (const wchar_t *wszName, bool bSkipAnimation, bool bSkipUnsavedModelWarning) |
bool | RestoreSnapshot (const wchar_t *wszName, const ON_SimpleArray< UUID > &aClients, bool bSkipAnimation, bool bSkipUnsavedModelWarning) |
const ON_3dmRevisionHistory & | RevisionHistory () const |
class CRhRuntimeSettings * | RuntimeSettings () |
bool | SaveSnapshot (const wchar_t *wszName) |
bool | SaveSnapshot (const wchar_t *wszName, const ON_SimpleArray< UUID > &aClients) |
void | SetAnalysisMeshSettings (const ON_MeshParameters &) |
void | SetAnimationProperties (const ON_3dmAnimationProperties &ap) |
void | SetAnnotationSettings (const CRhinoAnnotationSettingsEx &as) |
ON_Color | SetCurrentColor (ON_Color) |
ON::object_color_source | SetCurrentColorSource (ON::object_color_source) |
ON::object_material_source | SetCurrentMaterialSource (ON::object_material_source) |
int | SetCurrentWireDensity (int) |
void | SetCustomRenderMeshParameters (const ON_MeshParameters &customer_render_mesh_parameters) |
void | SetCustomRenderMeshSettings (const ON_MeshParameters &) |
void | SetEarthAnchorPoint (ON_EarthAnchorPoint earth_anchor_point) |
void | SetFromSettings (const ON_3dmSettings &settings) |
void | SetGridDefaults (const ON_3dmConstructionPlaneGridDefaults &) |
void | SetIOSettings (ON_3dmIOSettings io_settings) |
void | SetModelBasepoint (ON_3dPoint model_basepoint) |
void | SetModelUnitsAndTolerances (const ON_3dmUnitsAndTolerances &u_and_t, bool bScaleModelObjects=false) |
void | SetModelURL (const wchar_t *) |
void | SetNotes (const ON_3dmNotes &) |
void | SetPageUnitsAndTolerances (const ON_3dmUnitsAndTolerances &u_and_t, bool bScalePaperObject=false) |
void | SetRenderMeshSettings (const ON_MeshParameters &) |
void | SetRenderMeshStyle (ON_MeshParameters::MESH_STYLE render_mesh_style) |
void | SetRenderSettings (const ON_3dmRenderSettings &) |
void | SetRevisionHistory (const ON_3dmRevisionHistory &) |
void | SetUnitsAndTolerances (const ON_3dmUnitsAndTolerances &u_and_t, bool bScaleModelObjects=false) |
OBSOLETE - use SetModelUnitsAndTolerances. More... | |
void | SetUseDimensionLayer (bool bEnable, const ON_UUID &dimension_layer_id) |
bool | SnapshotAt (int iIndex, ON_wString &sName) const |
unsigned int | SnapshotCount (void) const |
bool | SnapshotGetThumbnail (const wchar_t *wszName, const ON_2iSize &size, CRhinoDib &dib) const |
bool | SnapshotLookUp (const wchar_t *wszName) const |
void | SnapshotNames (ON_ClassArray< ON_wString > &aNames) const |
bool | SnapshotsClientAt (int iIndex, ON_UUID &id, ON_wString &sName) const |
bool | SnapshotsClientCategory (const ON_UUID &id, ON_wString &sCategory) const |
unsigned int | SnapshotsClientCount (void) const |
bool | SnapshotsClientData (const wchar_t *wszName, const UUID &idClient, ON_Buffer &data) const |
bool | SnapshotsClientName (const ON_UUID &id, ON_wString &sName) const |
bool | SnapshotsClients (const wchar_t *wszName, ON_SimpleArray< UUID > &aClients) const |
bool | SnapshotsDeleteTemporarySave (const ON_UUID &id) |
bool | SnapshotsEnableClient (const wchar_t *wszName, const UUID &idClient, bool bEnable) |
bool | SnapshotsEnableClientForPartialRestore (const wchar_t *wszName, const UUID &idClient, bool bEnable) |
bool | SnapshotsGetUserString (const wchar_t *wszName, const wchar_t *wszKey, ON_wString &sValue) const |
int | SnapshotsGetUserStringKeys (const wchar_t *wszName, ON_ClassArray< ON_wString > &aKeys) const |
int | SnapshotsGetUserStrings (const wchar_t *wszName, ON_ClassArray< ON_UserString > &aStrings) const |
bool | SnapshotsGetView (const wchar_t *wszName, ON_3dmView &view) const |
bool | SnapshotsIsClientEnabled (const wchar_t *wszName, const UUID &idClient, bool &bEnabled) const |
bool | SnapshotsIsClientEnabledForPartialRestore (const wchar_t *wszName, const UUID &idClient, bool &bEnabled) const |
bool | SnapshotsSetClientData (const wchar_t *wszName, const UUID &idClient, const ON_Buffer &data) |
bool | SnapshotsSetUserString (const wchar_t *wszName, const wchar_t *wszKey, const wchar_t *wszValue) |
int | SnapshotsSetUserStrings (const wchar_t *wszName, int iCount, const ON_UserString *pStrings, bool bReplace) |
bool | SnapshotsTemporaryRestore (const ON_UUID &id) |
bool | SnapshotsTemporarySave (ON_UUID &id) |
int | SnapshotsUserStringCount (const wchar_t *wszName) const |
const ON_3dmUnitsAndTolerances & | UnitsAndTolerances () const |
OBSOLETE - use ModelUnitsAndTolerances. More... | |
bool | UseDimensionLayer () const |
bool | UseHiddenLightsInRenderedViews (bool from_doc=false) const |
Friends | |
class | CRhinoDoc |
class | CRhinoNamedViewCameraIcon |
class | CRhRenderSettingsHelper |
CRhinoDocProperties::CRhinoDocProperties | ( | ) |
|
virtual |
int CRhinoDocProperties::AddNamedConstructionPlane | ( | const ON_3dmConstructionPlane & | named_cplane | ) |
Description: Add named construction plane to document. Parameters: name_cplane - [in] Remarks: If named_cplane has an empty name, a unique name is automatically created. If there is already a named onstruction plane with the same name, that construction plane is replaced. Returns: >= 0 : success 0 based index of named construction plane. -1 : failure invalid plane See Also: CRhinoDocProperties::NamedConstructionPlane
int CRhinoDocProperties::AddNamedView | ( | const ON_3dmView & | named_view | ) |
Description: Add a named view to the document. Parameters: named_view - [in] Remarks: If named_view has an empty name, a unique name is automatically created. If there is already a named view with the same name, that view is replaced. See Also: CRhinoDocProperties::NamedView Returns: >= 0 : success 0 based index of named view. -1 : failure invalid plane See Also: CRhinoDocProperties::NamedView CRhinoDocProperties::NamedViewIndex CRhinoDocProperties::RemoveNamedView CRhinoDocProperties::MoveNamedView CRhinoDocProperties::GetNamedViewSelection
ON_Color CRhinoDocProperties::AmbientLightColor | ( | bool | from_doc = false | ) | const |
const ON_MeshParameters& CRhinoDocProperties::AnalysisMeshSettings | ( | ) | const |
settings used for automatically created analysis meshes
bool CRhinoDocProperties::AnimatedSunAtFrame | ( | const ON_3dmAnimationProperties & | ap, |
int | iFrame, | ||
ON_Light & | sun | ||
) |
bool CRhinoDocProperties::AnimatedViewAtFrame | ( | const ON_3dmAnimationProperties & | ap, |
int | iFrame, | ||
ON_Viewport & | vp | ||
) |
const ON_3dmAnimationProperties& CRhinoDocProperties::AnimationProperties | ( | ) |
ON_Color CRhinoDocProperties::BackgroundColor | ( | bool | from_doc = false | ) | const |
ON_Color CRhinoDocProperties::CurrentColor | ( | ) | const |
ON::object_color_source CRhinoDocProperties::CurrentColorSource | ( | ) | const |
const ON::object_material_source CRhinoDocProperties::CurrentMaterialSource | ( | ) | const |
TODO: ?Are these handled in CRhinoDoc?
The following functions set/get values. The set functions return the previous value on success otherwise -1 int CurrentLayerIndex() const; int SetCurrentLayerIndex( int);
int CurrentMaterialIndex() const; int SetCurrentMaterialIndex( int);
int CRhinoDocProperties::CurrentWireDensity | ( | ) | const |
line style if ON::line_style_from_object == LineStyleSource() OBSOLETE 17 March 2005 Dale Lear - const ON_LineStyle& CurrentLineStyle() const; OBSOLETE 17 March 2005 Dale Lear - ON_LineStyle SetCurrentLineStyle( const ON_LineStyle&); OBSOLETE 17 March 2005 Dale Lear - const ON::object_line_style_source CurrentLineStyleSource() const; OBSOLETE 17 March 2005 Dale Lear - ON::object_line_style_source SetCurrentLineStyleSource( ON::object_line_style_source);
const ON_MeshParameters& CRhinoDocProperties::CustomRenderMeshSettings | ( | ) | const |
void CRhinoDocProperties::Default | ( | ) |
bool CRhinoDocProperties::DeleteSnapshot | ( | const wchar_t * | wszName | ) |
Description: Deletes the specified snapshot. Parameters: wszName - [In] Name of the snapshot. Returns: True or false depending if the deleting succeeded.
ON_UUID CRhinoDocProperties::DimensionLayerId | ( | ) | const |
bool CRhinoDocProperties::DisplayCurvesAndIsocurvesInRenderedViews | ( | bool | from_doc = false | ) | const |
Rendered view display mode settings If from_doc == true then values are always returned from CRhinoDocProperties otherwise CRhinoAppSettings::GetRenderedViewSettingsFromDoc() determines where the values are returned from.
bool CRhinoDocProperties::DisplayTextAndDimensionsInRenderedViews | ( | bool | from_doc = false | ) | const |
|
inline |
ON_EarthAnchorPoint CRhinoDocProperties::EarthAnchorPoint | ( | ) | const |
void CRhinoDocProperties::EnableHatchScaling | ( | bool | b = true | ) |
void CRhinoDocProperties::EnableLayoutSpaceAnnotationScaling | ( | bool | b = true | ) |
void CRhinoDocProperties::EnableModelSpaceAnnotationScaling | ( | bool | b = true | ) |
CRhinoAnnotationSettingsEx CRhinoDocProperties::GetAnnotationSettings | ( | ) | const |
settings used when annotation objects are created Deprecated 27 Aug 2010 - Lowell ON_DEPRECATED const CRhinoAnnotationSettings& AnnotationSettings() const; ON_DEPRECATED void SetAnnotationSettings( const CRhinoAnnotationSettings& as, BOOL32 bUpdateDims = TRUE); Settings having to do with model space / layout space scaling of dimensions and text Added 27 Aug, 2010
void CRhinoDocProperties::GetCurrentSettings | ( | ON_3dmSettings & | settings | ) | const |
Description: Fill in an ON_3dmSettings class with the values of the current document settings. Parameters: settings - [out] Remarks: To get and set individual settings, use the member functions below.
void CRhinoDocProperties::GetCustomRenderSizes | ( | ON_SimpleArray< ON_2iSize > & | sizes | ) |
bool CRhinoDocProperties::GetNamedViewSelection | ( | ON_ClassArray< ON_wString > & | named_views | ) | const |
Description: Gets the current selection in the Named Views panel. If more than one such panel is open, it will return the selection in the most recently opened panel. Parameters: named_views - [out] The names of the selected named views are appended to this array. Returns: true if successful, false if there are no named view panels open. See Also: CRhinoDocProperties::NamedView CRhinoDocProperties::NamedViewIndex CRhinoDocProperties::AddNamedView CRhinoDocProperties::RemoveNamedView
BOOL32 CRhinoDocProperties::GetON_3dmAnnotationSettings | ( | ON_3dmAnnotationSettings & | settings | ) | const |
const ON_3dmConstructionPlaneGridDefaults& CRhinoDocProperties::GridDefaults | ( | ) | const |
default settings for construction plane grids
ON_3dmIOSettings CRhinoDocProperties::IOSettings | ( | ) | const |
bool CRhinoDocProperties::IsHatchScalingEnabled | ( | ) | const |
bool CRhinoDocProperties::IsLayoutSpaceAnnotationScalingEnabled | ( | ) | const |
bool CRhinoDocProperties::IsModelSpaceAnnotationScalingEnabled | ( | ) | const |
[Lowell - 3-28-2017] These are 2 new fields to replace the one previously used
Interface for AnnotationScaling added 4 Nov, 2010 - Lowell Get current value of AnnotationScaling (CRhinoAnnotationSettingsEx) bool IsAnnotationScalingEnabled() const; void EnableAnnotationScaling(bool b = true);
const ON_MeshParameters& CRhinoDocProperties::MeshParameters | ( | ON_MeshParameters::MESH_STYLE | mesh_style | ) | const |
Parameters: mesh_style - [in] ON_MeshParameters::MESH_STYLE enum value Returns: Meshing parameters to use to create the specified style of mesh.
ON_3dPoint CRhinoDocProperties::ModelBasepoint | ( | ) | const |
const wchar_t* CRhinoDocProperties::ModelName | ( | ) | const |
const ON_UnitSystem& CRhinoDocProperties::ModelUnits | ( | ) | const |
model space tolerances and unit system
const ON_3dmUnitsAndTolerances& CRhinoDocProperties::ModelUnitsAndTolerances | ( | ) | const |
const wchar_t* CRhinoDocProperties::ModelURL | ( | ) |
bool CRhinoDocProperties::MoveNamedConstructionPlane | ( | int | cplane_index, |
int | cplane_index_before | ||
) |
Description: Move a named construction plane before another one. Parameters: cplane_index - [in] The index of the named construction plane to move. cplane_index_before - [in] The index of the named construction plane to move before. -1 means move to end of list. Returns: true if construction plane was moved. See Also: CRhinoDocProperties::NamedConstructionPlane CRhinoDocProperties::NamedConstructionPlaneIndex CRhinoDocProperties::AddNamedConstructionPlane CRhinoDocProperties::RemoveNamedConstructionPlane
bool CRhinoDocProperties::MoveNamedView | ( | int | view_index, |
int | view_index_before | ||
) |
Description: Move a named view before another one. Parameters: view_index - [in] The index of the named view to move. view_index_before - [in] The index of the named view to move before. -1 means move to end of list. Returns: true if view was moved. See Also: CRhinoDocProperties::NamedView CRhinoDocProperties::NamedViewIndex CRhinoDocProperties::AddNamedView CRhinoDocProperties::RemoveNamedView CRhinoDocProperties::GetNamedViewSelection
const ON_3dmConstructionPlane* CRhinoDocProperties::NamedConstructionPlane | ( | const wchar_t * | name | ) | const |
const ON_3dmView* View( int) const;
Description: Find a named construction plane Parameters: name - [in] Returns: pointer to named construction plane See Also: CRhinoDocProperties::NamedConstructionPlaneIndex CRhinoDocProperties::AddNamedConstructionPlane CRhinoDocProperties::RemoveNamedConstructionPlane CRhinoDocProperties::MoveNamedConstructionPlane
const ON_3dmConstructionPlane* CRhinoDocProperties::NamedConstructionPlane | ( | int | ) | const |
The following functions take a zero based index into an array and return NULL if index is out of range.
int CRhinoDocProperties::NamedConstructionPlaneIndex | ( | const ON_3dmConstructionPlane * | cplane | ) | const |
Description: Get zero based index of named construction plane Parameters: cplane - [in] Returns: 0 based index of named construction plane or -1 if cplane is not one of documents named construction planes. See Also: CRhinoDocProperties::NamedConstructionPlane CRhinoDocProperties::AddNamedConstructionPlane CRhinoDocProperties::RemoveNamedConstructionPlane CRhinoDocProperties::MoveNamedConstructionPlane
const ON_3dmView* CRhinoDocProperties::NamedView | ( | const wchar_t * | name | ) | const |
Description: Find a named view. Parameters: name - [in] Returns: pointer to the named view or null if not found. See Also: CRhinoDocProperties::NamedView CRhinoDocProperties::AddNamedView CRhinoDocProperties::GetNamedViewSelection
const ON_3dmView* CRhinoDocProperties::NamedView | ( | int | ) | const |
int CRhinoDocProperties::NamedViewCount | ( | ) | const |
int CRhinoDocProperties::NamedViewIndex | ( | const ON_3dmView * | view | ) | const |
Description: Get zero based index of named view Parameters: view - [in] Returns: 0 based index of named view or -1 if view is not one of documents named views. See Also: CRhinoDocProperties::NamedView CRhinoDocProperties::AddNamedView CRhinoDocProperties::RemoveNamedView CRhinoDocProperties::MoveNamedView CRhinoDocProperties::GetNamedViewSelection
const ON_3dmNotes& CRhinoDocProperties::Notes | ( | ) | const |
const ON_UnitSystem& CRhinoDocProperties::PageUnits | ( | ) | const |
page space tolerances and unit system
const ON_3dmUnitsAndTolerances& CRhinoDocProperties::PageUnitsAndTolerances | ( | ) | const |
BOOL32 CRhinoDocProperties::RemoveNamedConstructionPlane | ( | int | cplane_index | ) |
Description: Get zero based index of named construction plane Parameters: cplane_index - [in] Returns: TRUE if plane was removed. See Also: CRhinoDocProperties::NamedConstructionPlane CRhinoDocProperties::NamedConstructionPlaneIndex CRhinoDocProperties::AddNamedConstructionPlane CRhinoDocProperties::MoveNamedConstructionPlane
BOOL32 CRhinoDocProperties::RemoveNamedView | ( | int | view_index | ) |
Description: Remove a named view from the document. Parameters: view_index - [in] Returns: TRUE if view was removed. See Also: CRhinoDocProperties::NamedView CRhinoDocProperties::NamedViewIndex CRhinoDocProperties::AddNamedView CRhinoDocProperties::MoveNamedView CRhinoDocProperties::GetNamedViewSelection
bool CRhinoDocProperties::RenameSnapshot | ( | const wchar_t * | wszNameOld, |
const wchar_t * | wszNameNew | ||
) |
Description: Renames the specified snapshot. Parameters: wszNameOld - [In] Current name of the snapshot. wszNameNew - [In] New name for the snapshot. Returns: True or false depending if the renaming succeeded.
const ON_MeshParameters& CRhinoDocProperties::RenderMeshParameters | ( | ) | const |
Returns: Meshing parameters to use when creating a render mesh. = MeshParameters( RenderMeshStyle() );
const ON_MeshParameters& CRhinoDocProperties::RenderMeshSettings | ( | ) | const |
ON_MeshParameters::MESH_STYLE CRhinoDocProperties::RenderMeshStyle | ( | ) | const |
Returns: Style of render mesh that is created when objects like surface, breps, and extrusions need to be meshed for shaded display. ON_MeshParameters::render_mesh_fast = ON_MeshParameters::FastRenderMesh() ON_MeshParameters::render_mesh_quality = ON_MeshParameters::QualityRenderMesh() ON_MeshParameters::render_mesh_custom = CustomRenderMeshSettings().
const ON_3dmRenderSettings& CRhinoDocProperties::RenderSettings | ( | ) | const |
bool CRhinoDocProperties::RestoreSnapshot | ( | const wchar_t * | wszName, |
bool | bSkipAnimation, | ||
bool | bSkipUnsavedModelWarning | ||
) |
Description: Restores the specified snapshot. Parameters: wszName - [In] Name of the snapshot. bSkipAnimation - [In] Flag to enable/disable animation. bSkipUnsavedModelWarning - [In] Flag to enable/disable a message box that warns the user about unsaved data in the document. Returns: True or false depending if the restore succeeded.
bool CRhinoDocProperties::RestoreSnapshot | ( | const wchar_t * | wszName, |
const ON_SimpleArray< UUID > & | aClients, | ||
bool | bSkipAnimation, | ||
bool | bSkipUnsavedModelWarning | ||
) |
Description: Restores the specified snapshot. Parameters: wszName - [In] Name of the snapshot. aClients - [In] Array of clients. bSkipAnimation - [In] Flag to enable/disable animation. bSkipUnsavedModelWarning - [In] Flag to enable/disable a message box that warns the user about unsaved data in the document. Returns: True or false depending if the restore succeeded.
const ON_3dmRevisionHistory& CRhinoDocProperties::RevisionHistory | ( | ) | const |
class CRhRuntimeSettings* CRhinoDocProperties::RuntimeSettings | ( | ) |
bool CRhinoDocProperties::SaveSnapshot | ( | const wchar_t * | wszName | ) |
Description: Saves a snapshot with all available clients. Parameters: wszName - [In] Name of the snapshot. Returns: True or false depending if the save succeeded.
bool CRhinoDocProperties::SaveSnapshot | ( | const wchar_t * | wszName, |
const ON_SimpleArray< UUID > & | aClients | ||
) |
Description: Saves a snapshot with a selection of clients. Parameters: wszName - [In] Name of the snapshot. aClients - [In] IDs of enabled clients. Returns: True or false depending if the save succeeded.
void CRhinoDocProperties::SetAnalysisMeshSettings | ( | const ON_MeshParameters & | ) |
void CRhinoDocProperties::SetAnimationProperties | ( | const ON_3dmAnimationProperties & | ap | ) |
void CRhinoDocProperties::SetAnnotationSettings | ( | const CRhinoAnnotationSettingsEx & | as | ) |
ON::object_color_source CRhinoDocProperties::SetCurrentColorSource | ( | ON::object_color_source | ) |
ON::object_material_source CRhinoDocProperties::SetCurrentMaterialSource | ( | ON::object_material_source | ) |
int CRhinoDocProperties::SetCurrentWireDensity | ( | int | ) |
void CRhinoDocProperties::SetCustomRenderMeshParameters | ( | const ON_MeshParameters & | customer_render_mesh_parameters | ) |
Description: Set meshing parameters to use when the render mesh style is ON_MeshParameters::render_mesh_custom.
void CRhinoDocProperties::SetCustomRenderMeshSettings | ( | const ON_MeshParameters & | ) |
void CRhinoDocProperties::SetEarthAnchorPoint | ( | ON_EarthAnchorPoint | earth_anchor_point | ) |
void CRhinoDocProperties::SetFromSettings | ( | const ON_3dmSettings & | settings | ) |
Remarks: These settings fields are ignored because they are specified elsewhere. settings.m_views CRhinoDoc::GetViewList settings.m_current_layer_index CRhinoDoc::m_layer_table settings.m_current_material_index CRhinoDoc::m_material_table settings.m_current_material_source CRhinoDoc::m_material_table
void CRhinoDocProperties::SetGridDefaults | ( | const ON_3dmConstructionPlaneGridDefaults & | ) |
void CRhinoDocProperties::SetIOSettings | ( | ON_3dmIOSettings | io_settings | ) |
void CRhinoDocProperties::SetModelBasepoint | ( | ON_3dPoint | model_basepoint | ) |
void CRhinoDocProperties::SetModelUnitsAndTolerances | ( | const ON_3dmUnitsAndTolerances & | u_and_t, |
bool | bScaleModelObjects = false |
||
) |
void CRhinoDocProperties::SetModelURL | ( | const wchar_t * | ) |
void CRhinoDocProperties::SetNotes | ( | const ON_3dmNotes & | ) |
void CRhinoDocProperties::SetPageUnitsAndTolerances | ( | const ON_3dmUnitsAndTolerances & | u_and_t, |
bool | bScalePaperObject = false |
||
) |
void CRhinoDocProperties::SetRenderMeshSettings | ( | const ON_MeshParameters & | ) |
void CRhinoDocProperties::SetRenderMeshStyle | ( | ON_MeshParameters::MESH_STYLE | render_mesh_style | ) |
Description: Set the style of render mesh to create when surfaces, breps and extrusions need to be meshed for shaded rendering. Parameters: render_mesh_style - [in] ON_MeshParameters::render_mesh_fast = ON_MeshParameters::FastRenderMesh() ON_MeshParameters::render_mesh_quality = ON_MeshParameters::QualityRenderMesh() ON_MeshParameters::render_mesh_custom = CustomRenderMeshSettings(). all other values are ignored
void CRhinoDocProperties::SetRenderSettings | ( | const ON_3dmRenderSettings & | ) |
void CRhinoDocProperties::SetRevisionHistory | ( | const ON_3dmRevisionHistory & | ) |
void CRhinoDocProperties::SetUnitsAndTolerances | ( | const ON_3dmUnitsAndTolerances & | u_and_t, |
bool | bScaleModelObjects = false |
||
) |
OBSOLETE - use SetModelUnitsAndTolerances.
void CRhinoDocProperties::SetUseDimensionLayer | ( | bool | bEnable, |
const ON_UUID & | dimension_layer_id | ||
) |
bool CRhinoDocProperties::SnapshotAt | ( | int | iIndex, |
ON_wString & | sName | ||
) | const |
Description: Gets the name of a snapshot at a specified index. Parameters: iIndex - [In] Zero based index of snapshot. sName - [Out] Name of the snapshot at given index. Returns: True or false depending if index available.
unsigned int CRhinoDocProperties::SnapshotCount | ( | void | ) | const |
Description: Number of saved snapshots. Returns: Number of saved snapshots in the document.
bool CRhinoDocProperties::SnapshotGetThumbnail | ( | const wchar_t * | wszName, |
const ON_2iSize & | size, | ||
CRhinoDib & | dib | ||
) | const |
Description: Gets the thumbnail of a specified snapshot. Parameters: wszName - [In] Name of the snapshot. size - [In] Size of the thumbnail. dib - [Out] Thumbnail of the snapshot. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotLookUp | ( | const wchar_t * | wszName | ) | const |
Description: Snapshot lookup. Parameters: wszName - [In] Name of the snapshot. Returns: True or false depending if the snapshot exists in the document.
void CRhinoDocProperties::SnapshotNames | ( | ON_ClassArray< ON_wString > & | aNames | ) | const |
Description: Array of snapshot names in the document. Parameters: aNames - [Out] Array of snapshot names
bool CRhinoDocProperties::SnapshotsClientAt | ( | int | iIndex, |
ON_UUID & | id, | ||
ON_wString & | sName | ||
) | const |
Description: Gets the name and ID of a client at a specified index. Parameters: iIndex - [In] Zero based index of snapshot. sId - [Out] ID of the client at given index. sName - [Out] Name of the client at given index. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsClientCategory | ( | const ON_UUID & | id, |
ON_wString & | sCategory | ||
) | const |
Description: Gets the category of a client. Parameters: sId - [In] ID of the client. sCategory - [Out] Category of the client. Returns: True or false depending if function call is successful.
unsigned int CRhinoDocProperties::SnapshotsClientCount | ( | void | ) | const |
Description: Number of registered clients. Parameters: doc - [In] The active document. Returns: Number of registered clients.
bool CRhinoDocProperties::SnapshotsClientData | ( | const wchar_t * | wszName, |
const UUID & | idClient, | ||
ON_Buffer & | data | ||
) | const |
Description: Gets the data of a client of a named snapshot. Parameters: wszName - [In] Name of the snapshot. idClient - [In] ID of the client. data - [Out] Client data. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsClientName | ( | const ON_UUID & | id, |
ON_wString & | sName | ||
) | const |
Description: Gets the name of a client. Parameters: sId - [In] ID of the client. sName - [Out] Name of the client. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsClients | ( | const wchar_t * | wszName, |
ON_SimpleArray< UUID > & | aClients | ||
) | const |
Description: Gets the clients of a named snapshot. Parameters: wszName - [In] Name of the snapshot. aClients - [Out] Array of client. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsDeleteTemporarySave | ( | const ON_UUID & | id | ) |
Description: Deletes a temporary stored snapshot. Parameters: id - [In] id of the snapshot. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsEnableClient | ( | const wchar_t * | wszName, |
const UUID & | idClient, | ||
bool | bEnable | ||
) |
Description: Sets the state of a client of a named snapshot. Parameters: wszName - [In] Name of the snapshot. idClient - [In] ID of the client. bEnabled - [In] Enable/Disable state. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsEnableClientForPartialRestore | ( | const wchar_t * | wszName, |
const UUID & | idClient, | ||
bool | bEnable | ||
) |
Description: Sets the state of a client of a named snapshot. Parameters: wszName - [In] Name of the snapshot. idClient - [In] ID of the client. bEnabled - [In] Enable/Disable state. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsGetUserString | ( | const wchar_t * | wszName, |
const wchar_t * | wszKey, | ||
ON_wString & | sValue | ||
) | const |
Description: Get user string from a snapshot. Parameters: wszName - [in] name of the snapshot. wszKey - [in] id used to retrieve the string. sValue - [out] Returns: True if a string with the id was found.
int CRhinoDocProperties::SnapshotsGetUserStringKeys | ( | const wchar_t * | wszName, |
ON_ClassArray< ON_wString > & | aKeys | ||
) | const |
Description: Get a list of all user string keys from a snapshot. Parameters: wszName - [in] name of the snapshot. aKeys - [out] User string keys are appended to this list. Returns: Number of elements appended to the aKeys list.
int CRhinoDocProperties::SnapshotsGetUserStrings | ( | const wchar_t * | wszName, |
ON_ClassArray< ON_UserString > & | aStrings | ||
) | const |
Description: Get a list of all user strings from a snapshot. Parameters: wszName - [in] name of the snapshot. aStrings - [out] user strings are appended to this list. Returns: Number of elements appended to the aStrings list.
bool CRhinoDocProperties::SnapshotsGetView | ( | const wchar_t * | wszName, |
ON_3dmView & | view | ||
) | const |
Description: Gets the view of a named snapshot. Parameters: wszName - [In] Name of the snapshot. view - [In] View of a snapshot. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsIsClientEnabled | ( | const wchar_t * | wszName, |
const UUID & | idClient, | ||
bool & | bEnabled | ||
) | const |
Description: Gets the state of a client of a named snapshot. Parameters: wszName - [In] Name of the snapshot. idClient - [In] ID of the client. bEnabled - [Out] Enable/Disable state. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsIsClientEnabledForPartialRestore | ( | const wchar_t * | wszName, |
const UUID & | idClient, | ||
bool & | bEnabled | ||
) | const |
Description: Gets the state of a client of a named snapshot. Parameters: wszName - [In] Name of the snapshot. idClient - [In] ID of the client. bEnabled - [Out] Enable/Disable state. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsSetClientData | ( | const wchar_t * | wszName, |
const UUID & | idClient, | ||
const ON_Buffer & | data | ||
) |
Description: Sets the data of a client of a named snapshot. Parameters: wszName - [In] Name of the snapshot. idClient - [In] ID of the client. data - [In] Client data. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsSetUserString | ( | const wchar_t * | wszName, |
const wchar_t * | wszKey, | ||
const wchar_t * | wszValue | ||
) |
Description: Attach a user string to a snapshot. Parameters: wszName - [in] name of the snapshot. wszKey - [in] id used to retrieve this string. wszValue - [in] If nullptr, the string with this id will be removed. Returns: True if successful.
int CRhinoDocProperties::SnapshotsSetUserStrings | ( | const wchar_t * | wszName, |
int | iCount, | ||
const ON_UserString * | pStrings, | ||
bool | bReplace | ||
) |
Description: Append entries to the user string list. Parameters: wszName - [in] name of the snapshot. iCount - [in] number of element in pStrings array. pStrings - [in] entries to append. bReplace - [in] If bReplace is true, then existing entries with the same key are updated with the new entry's value. If bReplace is false, then existing entries are not updated. Returns: Number of entries added, deleted, or modified.
bool CRhinoDocProperties::SnapshotsTemporaryRestore | ( | const ON_UUID & | id | ) |
Description: Restores a temporary snapshot. Parameters: id - [In] id of the snapshot. Returns: True or false depending if function call is successful.
bool CRhinoDocProperties::SnapshotsTemporarySave | ( | ON_UUID & | id | ) |
Description: Saves a temporary snapshot of the current document state. Parameters: id - [OUT] id of the snapshot. Returns: True or false depending if function call is successful.
int CRhinoDocProperties::SnapshotsUserStringCount | ( | const wchar_t * | wszName | ) | const |
Description: Gets user string count from a snapshot. Parameters: wszName - [in] name of the snapshot. Returns: Number of user strings on a snapshot.
const ON_3dmUnitsAndTolerances& CRhinoDocProperties::UnitsAndTolerances | ( | ) | const |
OBSOLETE - use ModelUnitsAndTolerances.
bool CRhinoDocProperties::UseDimensionLayer | ( | ) | const |
bool CRhinoDocProperties::UseHiddenLightsInRenderedViews | ( | bool | from_doc = false | ) | const |
|
friend |
|
friend |
|
friend |