Rhino C++ API
7.26
|
#include <rhinoSdkAppSettings.h>
Public Types | |
enum | osnap_command { osc_none = 0x00000000, osc_between = 0x00000010, osc_from_point = 0x00000100, osc_perpendicular_from = 0x00000200, osc_tangent_from = 0x00000400, osc_along_line = 0x00001000, osc_along_parallel = 0x00002000, osc_on_curve = 0x00010000, osc_on_surface = 0x00020000, osc_on_polysurface = 0x00040000 } |
enum | osnap_mode { os_none = ON::os_none, os_near = ON::os_near, os_focus = ON::os_focus, os_center = ON::os_center, os_vertex = ON::os_vertex, os_knot = ON::os_knot, os_quadrant = ON::os_quadrant, os_midpoint = ON::os_midpoint, os_intersection = ON::os_intersection, os_end = ON::os_end, os_perpendicular = ON::os_perpendicular, os_tangent = ON::os_tangent, os_point = ON::os_point } |
Friends | |
class | CRhinoApp |
The CRhinoAppSettings::osnap_mode enum is OBSOLETE. Use the ON::osnap_mode values. The reason for the change is that history records are saving these values in ON_ObjRefs.
Currently lots of files are checked out and I can't convert Rhino's use CRhinoAppSettings::osnap_mode to ON::osnap_mode.
Enumerator | |
---|---|
os_none | |
os_near | |
os_focus | |
os_center | |
os_vertex | |
os_knot | |
os_quadrant | |
os_midpoint | |
os_intersection | |
os_end | |
os_perpendicular | |
os_tangent | |
os_point |
ON_Color CRhinoAppSettings::ActiveLayerColor | ( | ) | const |
const CRhinoAppAliasList& CRhinoAppSettings::Aliases | ( | ) | const |
const CRhinoAppAppearanceSettings& CRhinoAppSettings::AppearanceSettings | ( | bool | synch_with_ui = false | ) | const |
bool CRhinoAppSettings::AskOnLoadProtection | ( | ) | const |
If true, a dialog will be shown when load protected plug-ins are being loaded. If false, load protected plug-ins will silently not load
bool CRhinoAppSettings::AutocompleteCommands | ( | ) | const |
If true, commands are in-line autocompleted and exact matches are shown in a popup menu.
const CRhinoAppChooseOneObjectSettings& CRhinoAppSettings::ChooseOneObjectSettings | ( | ) | const |
bool CRhinoAppSettings::CommandPromptIsVisible | ( | ) | const |
command prompt visibility and position
CRhinoAppAppearanceSettings::command_prompt_position CRhinoAppSettings::CommandPromptPosition | ( | ) | const |
const CRhinoAppContextMenuSettings& CRhinoAppSettings::ContextMenuSettings | ( | ) | const |
const CRhinoAppCursorToolTipSettings& CRhinoAppSettings::CursorToolTipSettings | ( | ) | const |
const CRhinoCurvatureAnalysisSettings& CRhinoAppSettings::CurvatureAnalysisSettings | ( | ) | const |
const CRhinoCurvatureGraphSettings& CRhinoAppSettings::CurvatureGraphSettings | ( | ) | const |
const ON_Font& CRhinoAppSettings::DefaultFont | ( | ) |
Returns: A managed font with facename = DefaultFontFaceName().
void CRhinoAppSettings::DefaultFontFaceName | ( | ON_wString & | font | ) | const |
const ON_Light& CRhinoAppSettings::DefaultLight | ( | ) | const |
const class CRhinoMaterial& CRhinoAppSettings::DefaultMaterial | ( | ) | const |
ON_Color CRhinoAppSettings::DefaultObjectColor | ( | ) | const |
default properties and light
void CRhinoAppSettings::Defaults | ( | ) |
bool CRhinoAppSettings::DefaultWorldCoordIconMoveLabels | ( | ) | const |
double CRhinoAppSettings::DigitizerOsnapPickboxRadius | ( | ) | const |
3D digitizer object snap pick box size
const CRhinoDirectionAnalysisSettings& CRhinoAppSettings::DirectionAnalysisSettings | ( | ) | const |
int CRhinoAppSettings::DirectionArrowIconHeadSize | ( | ) | const |
Length of direction arrow icon head in pixels.
int CRhinoAppSettings::DirectionArrowIconShaftSize | ( | ) | const |
Length of direction arrow icon shaft in pixels.
bool CRhinoAppSettings::DisplayCurvesAndIsocurvesInRenderedViews | ( | const CRhinoDoc * | ) | const |
If GetRenderedViewSettingsFromDoc() returns true then values for the following are returned from CRhinoDoc::Properties().RenderSettings() otherwise they are returned from CRhinoDisplaySettings
const CRhinoDisplaySettings& CRhinoAppSettings::DisplaySettings | ( | ) | const |
bool CRhinoAppSettings::DisplayTextAndDimensionsInRenderedViews | ( | const CRhinoDoc * | ) | const |
bool CRhinoAppSettings::DisplayViewportTitles | ( | ) | const |
viewport options
const CRhinoAppDontRepeatCommandSettings& CRhinoAppSettings::DontRepeatCommands | ( | ) | const |
const CRhinoDraftAngleAnalysisSettings& CRhinoAppSettings::DraftAngleAnalysisSettings | ( | ) | const |
bool CRhinoAppSettings::EchoCommandsToHistory | ( | ) | const |
bool CRhinoAppSettings::EchoPromptsToHistory | ( | ) | const |
const CRhinoEdgeAnalysisSettings& CRhinoAppSettings::EdgeAnalysisSettings | ( | ) | const |
const CRhinoEdgeContinuitySettings& CRhinoAppSettings::EdgeContinuitySettings | ( | ) | const |
const CRhinoEmapAnalysisSettings& CRhinoAppSettings::EmapAnalysisSettings | ( | ) | const |
void CRhinoAppSettings::EnableGridSnap | ( | bool | = true | ) |
void CRhinoAppSettings::EnableOrtho | ( | bool | = true | ) |
bool CRhinoAppSettings::EnableOsnapHighlight | ( | ) | const |
END Gumball settings By default active osnap is indicated by thickening the wireframe of the osnapped object. Disable osnap highlight to remove the effect.
bool CRhinoAppSettings::EnableOsnaps | ( | ) | const |
void CRhinoAppSettings::EnablePlanar | ( | bool | = true | ) |
const CRhinoEndAnalysisSettings& CRhinoAppSettings::EndAnalysisSettings | ( | ) | const |
ON_Color CRhinoAppSettings::FeedbackColor | ( | ) | const |
const CRhinoAppFileSettings& CRhinoAppSettings::FileSettings | ( | ) | const |
ON_Color CRhinoAppSettings::FrameBackgroundColor | ( | ) | const |
bool CRhinoAppSettings::FuzzyAutocomplete | ( | ) | const |
If true, in-line auto-complete uses popularity sorting, and pop-up menu includes closest inexact matches.
const CRhinoAppGeneralSettings& CRhinoAppSettings::GeneralSettings | ( | ) | const |
ON_wString CRhinoAppSettings::GetPackageManagerSources | ( | ) | const |
bool CRhinoAppSettings::GetRenderedViewSettingsFromDoc | ( | ) | const |
rendered views options
int CRhinoAppSettings::GridAxisLineWidth | ( | ) | const |
const CRhinoAppGridSettings& CRhinoAppSettings::GridSettings | ( | ) | const |
bool CRhinoAppSettings::GridSnap | ( | ) | const |
Grid snap setting.
ON_Color CRhinoAppSettings::GridThickLineColor | ( | ) | const |
int CRhinoAppSettings::GridThickLineWidth | ( | ) | const |
construction plane grid line properties
ON_Color CRhinoAppSettings::GridThinLineColor | ( | ) | const |
construction plane grid colors
ON_Color CRhinoAppSettings::GridXAxisColor | ( | ) | const |
ON_Color CRhinoAppSettings::GridYAxisColor | ( | ) | const |
ON_Color CRhinoAppSettings::GridZAxisColor | ( | ) | const |
unsigned int CRhinoAppSettings::ImportFileLayerMatchingOption | ( | ) | const |
The import file layer matching setting belongs on CRhinoAppFileSettings but that class cannot be modified without breaking the SDK. This setting controls what happens to layers when the contents of an external source file are imported into an existing model.
The Import, Paste and Insert commands are a few of the ways a file can be imported into an existing model. 0 = import layer names using the full path found in the source file. 1 = if the source file has a layer with named "source_file_parent_layer_path/X" and the current model has a layer named "current_model_parent_layer_path/X", then change all references from "source_file_parent_layer_path/X" to "current_model_parent_layer_path/X" when importing items from the source file. This mimics Rhino 4.0 behavior, where all short layer names had to be unique and the parent path was ignored.
void CRhinoAppSettings::LoadProfile | ( | CRhinoProfileContext & | context | ) |
This function WILL call OnAppSettingsChanged event watchers if any settings change.
void CRhinoAppSettings::LoadRepeatCommandSettings | ( | CRhinoProfileContext & | context | ) |
ON_Color CRhinoAppSettings::LockedObjectColor | ( | bool | bIsReferenceObject = false | ) | const |
const class CRhinoMaterial& CRhinoAppSettings::LockedObjectMaterial | ( | ) | const |
for RenderPreview
const CRhinoAppModelAidSettings& CRhinoAppSettings::ModelAidSettings | ( | ) | const |
int CRhinoAppSettings::MousePickboxRadius | ( | ) | const |
mouse pick box size
const CRhinoAppMouseSettings& CRhinoAppSettings::MouseSettings | ( | ) | const |
const ON_ClassArray<CRhinoNamedColor>& CRhinoAppSettings::NamedColorList | ( | ) |
const CRhinoOpenGLSettings& CRhinoAppSettings::OpenGLSettings | ( | ) | const |
bool CRhinoAppSettings::Ortho | ( | ) | const |
Ortho setting.
bool CRhinoAppSettings::OsnapDialogVisible | ( | ) |
bool CRhinoAppSettings::OsnapEnabled | ( | ) | const |
Returns: true if any osnaps are enabled.
unsigned int CRhinoAppSettings::OsnapMode | ( | ) | const |
Returns: An unsigned int with CRhinoAppSettings::osnap_mode bits set if an osnap is enabled.
bool CRhinoAppSettings::OsnapMode | ( | osnap_mode | ) | const |
Persistant Osnaps.
int CRhinoAppSettings::OsnapPickboxRadius | ( | ) | const |
object snap pick box size
bool CRhinoAppSettings::Planar | ( | ) | const |
Planar setting.
CRhinoAppModelAidSettings::point_display_mode CRhinoAppSettings::PointDisplayMode | ( | ) | const |
class CRhAppSettingsData* CRhinoAppSettings::Private | ( | ) | const |
For internal use only.
bool CRhinoAppSettings::ProjectOsnaps | ( | ) | const |
bool CRhinoAppSettings::ProjectOsnapsInPlanParallelViews | ( | ) | const |
void CRhinoAppSettings::RemapMouse | ( | int | , |
int & | , | ||
UINT & | |||
) | const |
The "original" mouse event is passed in and can be modified by users who want to change one action to another.
void CRhinoAppSettings::SaveProfile | ( | CRhinoProfileContext & | context | ) | const |
bool CRhinoAppSettings::SaveViewChanges | ( | ) | const |
true if changing a view should mark a document as modified
ON_Color CRhinoAppSettings::SelectedGripColor | ( | ) | const |
ON_Color CRhinoAppSettings::SelectedObjectColor | ( | bool | bIsReferenceObject = false | ) | const |
object state colors
const CRhinoAppSelectionFilterSettings& CRhinoAppSettings::SelectionFilterSettings | ( | ) | const |
void CRhinoAppSettings::SetAliases | ( | const CRhinoAppAliasList & | settings | ) |
void CRhinoAppSettings::SetAppearanceSettings | ( | const CRhinoAppAppearanceSettings & | settings | ) |
void CRhinoAppSettings::SetAskOnLoadProtection | ( | bool | bAsk | ) |
void CRhinoAppSettings::SetAutocompleteCommands | ( | bool | bEnable | ) |
void CRhinoAppSettings::SetChooseOneObjectSettings | ( | const CRhinoAppChooseOneObjectSettings & | settings | ) |
void CRhinoAppSettings::SetContextMenuSettings | ( | const CRhinoAppContextMenuSettings & | settings | ) |
void CRhinoAppSettings::SetCursorToolTipSettings | ( | const CRhinoAppCursorToolTipSettings & | settings | ) |
void CRhinoAppSettings::SetCurvatureAnalysisSettings | ( | const CRhinoCurvatureAnalysisSettings & | settings | ) |
void CRhinoAppSettings::SetCurvatureGraphSettings | ( | const CRhinoCurvatureGraphSettings & | settings | ) |
void CRhinoAppSettings::SetDirectionAnalysisSettings | ( | const CRhinoDirectionAnalysisSettings & | settings | ) |
void CRhinoAppSettings::SetDisplaySettings | ( | const CRhinoDisplaySettings & | settings | ) |
void CRhinoAppSettings::SetDontRepeatCommands | ( | const CRhinoAppDontRepeatCommandSettings & | settings | ) |
void CRhinoAppSettings::SetDraftAngleAnalysisSettings | ( | const CRhinoDraftAngleAnalysisSettings & | settings | ) |
void CRhinoAppSettings::SetEdgeAnalysisSettings | ( | const CRhinoEdgeAnalysisSettings & | settings | ) |
void CRhinoAppSettings::SetEdgeContinuitySettings | ( | const CRhinoEdgeContinuitySettings & | settings | ) |
void CRhinoAppSettings::SetEmapAnalysisSettings | ( | const CRhinoEmapAnalysisSettings & | settings | ) |
void CRhinoAppSettings::SetEnableOsnapHighlight | ( | bool | bEnable | ) |
bool CRhinoAppSettings::SetEnableOsnaps | ( | bool | bEnable = true | ) |
void CRhinoAppSettings::SetEndAnalysisSettings | ( | const CRhinoEndAnalysisSettings & | settings | ) |
void CRhinoAppSettings::SetFileSettings | ( | const CRhinoAppFileSettings & | settings | ) |
void CRhinoAppSettings::SetFuzzyAutocomplete | ( | bool | bEnable | ) |
void CRhinoAppSettings::SetGeneralSettings | ( | const CRhinoAppGeneralSettings & | settings | ) |
bool CRhinoAppSettings::SetGetRenderedViewSettingsFromDoc | ( | bool | b | ) |
void CRhinoAppSettings::SetGridSettings | ( | const CRhinoAppGridSettings & | settings | ) |
void CRhinoAppSettings::SetGumballColors | ( | CRhinoGumballColors | gumball_colors | ) |
BEGIN Gumball settings NOTE: When we are closer to shipping a finished gumball, There will be a CRhinoGumballSettings class that can be used to set/get all gumball related settings. While we are still testing the look and feel of the gumball, individual settings will be added here. Rhino default gumball colors The CRhinoGumballColors() constructor uses these values.
void CRhinoAppSettings::SetGumballSizes | ( | CRhinoGumballSizes | gumball_sizes | ) |
Set Rhino gumball sizes. The CRhinoGumballSizes() constructor uses these values.
void CRhinoAppSettings::SetImportFileLayerMatchingOption | ( | unsigned int | import_file_layer_matching_option | ) |
See the comment above the declaration of CRhinoApp::ImportFileLayerMatchingOption() for a description of the values import_file_layer_matching_option can have.
void CRhinoAppSettings::SetModelAidSettings | ( | const CRhinoAppModelAidSettings & | settings | ) |
void CRhinoAppSettings::SetMouseSettings | ( | const CRhinoAppMouseSettings & | settings | ) |
void CRhinoAppSettings::SetOpenGLSettings | ( | const CRhinoOpenGLSettings & | ) |
void CRhinoAppSettings::SetOsnapMode | ( | osnap_mode | mode, |
bool | b | ||
) |
void CRhinoAppSettings::SetPackageManagerSources | ( | const wchar_t * | s | ) |
bool CRhinoAppSettings::SetProjectOsnaps | ( | bool | bEnable = true | ) |
bool CRhinoAppSettings::SetProjectOsnapsInPlanParallelViews | ( | bool | bEnable = true | ) |
void CRhinoAppSettings::SetSelectionFilterSettings | ( | const CRhinoAppSelectionFilterSettings & | ) |
void CRhinoAppSettings::SetShortCutKeys | ( | const CRhinoAppShortcutKeys & | settings | ) |
void CRhinoAppSettings::SetShowAutoGumball | ( | bool | bShowAutoGumball | ) |
void CRhinoAppSettings::SetSmartTrackSettings | ( | const CRhinoAppSmartTrackSettings & | settings | ) |
void CRhinoAppSettings::SetSnappyGumball | ( | bool | bSnappyGumball | ) |
void CRhinoAppSettings::SetSpaceBallSettings | ( | const CRhinoAppSpaceBallSettings & | settings | ) |
void CRhinoAppSettings::SetThicknessAnalysisSettings | ( | const CRhinoThicknessAnalysisSettings & | settings | ) |
void CRhinoAppSettings::SetUiPaintColorSettings | ( | const CRhinoUiPaintColorSettings & | settings | ) |
void CRhinoAppSettings::SetViewSettings | ( | const CRhinoAppViewSettings & | settings | ) |
void CRhinoAppSettings::SetWidgetColorSettings | ( | const CRhinoWidgetColorSettings & | settings | ) |
void CRhinoAppSettings::SetZebraAnalysisSettings | ( | const CRhinoZebraAnalysisSettings & | settings | ) |
const CRhinoAppShortcutKeys& CRhinoAppSettings::ShortCutKeys | ( | ) | const |
bool CRhinoAppSettings::ShowAutoGumball | ( | ) | const |
When AutoGumball is on, a gumball automatically appears when objects are prepicked.
ON_Color CRhinoAppSettings::ShowEdgeColor | ( | ) | const |
void CRhinoAppSettings::ShowOsnapDialog | ( | bool | = true | ) |
Show and Hide the Osnap dialog.
bool CRhinoAppSettings::ShowStatusBar | ( | bool | bShow = true | ) |
bool CRhinoAppSettings::ShowZAxis | ( | void | ) | const |
const CRhinoAppSmartTrackSettings& CRhinoAppSettings::SmartTrackSettings | ( | ) | const |
bool CRhinoAppSettings::SnappyGumball | ( | ) | const |
When SnappyGumball is on, a dragging a gumball moves the center point. When snappy gumball is off, dragging a gumball moves the mouse down point.
const CRhinoAppSpaceBallSettings& CRhinoAppSettings::SpaceBallSettings | ( | ) | const |
bool CRhinoAppSettings::StatusBarIsVisisble | ( | ) | const |
status bar state
const CRhinoThicknessAnalysisSettings& CRhinoAppSettings::ThicknessAnalysisSettings | ( | ) | const |
ON_Color CRhinoAppSettings::TrackingColor | ( | ) | const |
const CRhinoUiPaintColorSettings& CRhinoAppSettings::UiPaintColorSettings | ( | ) | const |
bool CRhinoAppSettings::UseDontRepeatList | ( | ) | const |
bool CRhinoAppSettings::UseHiddenLightsInRenderedViews | ( | const CRhinoDoc * | ) | const |
ON_Color CRhinoAppSettings::ViewportBackgroundColor | ( | ) | const |
viewport colors
const CRhinoAppViewSettings& CRhinoAppSettings::ViewSettings | ( | ) | const |
const CRhinoWidgetColorSettings& CRhinoAppSettings::WidgetColorSettings | ( | ) | const |
int CRhinoAppSettings::WorldCoordIconAxisSize | ( | ) | const |
length of the axes lines in pixels
int CRhinoAppSettings::WorldCoordIconLabelSize | ( | ) | const |
radius of the axes labels in pixels
bool CRhinoAppSettings::WorldCoordIconMoveLabels | ( | ) | const |
If WorldCoordIconMoveLabels() returns true, the world axes icon labels position themselves so that the axes lines are not drawn on top of the axes labels. If false, the labels are always drawn to the right of the ends of the axes.
ON_Color CRhinoAppSettings::WorldCoordIconXAxisColor | ( | ) | const |
world coordinate icon axes colors
ON_Color CRhinoAppSettings::WorldCoordIconYAxisColor | ( | ) | const |
ON_Color CRhinoAppSettings::WorldCoordIconZAxisColor | ( | ) | const |
const CRhinoZebraAnalysisSettings& CRhinoAppSettings::ZebraAnalysisSettings | ( | ) | const |
|
friend |