SoWinColorEditor Class |
Component that lets you edit a color interactively.
Namespace: OIV.Inventor.Win
The SoWinColorEditor type exposes the following members.
Name | Description | |
---|---|---|
SoWinColorEditor | Calls SoWinColorEditor((System.Windows.Forms.Control ^)nullptr, (System.String ^)nullptr, true). | |
SoWinColorEditor(Control) | Calls SoWinColorEditor(parent, (System.String ^)nullptr, true). | |
SoWinColorEditor(Control, String) | Calls SoWinColorEditor(parent, name, true). | |
SoWinColorEditor(Control, String, Boolean) | Constructor. |
Name | Description | |
---|---|---|
Attach(SoSFColor, SoBase) | Attaches the editor to a color node and edits the specified color. | |
Attach(SoMFColor, Int32, SoBase) | Attaches the editor to a color node and edits the specified color. | |
Attach(SoMFUInt32, Int32, SoBase) | Handles attaching to an "orderedRGBA" field (e.g. OIV.Inventor.Nodes.SoVertexProperty) | |
Detach | Detaches the editor from a color node. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetClassName | Returns the class name. | |
GetColor | Gets the current color value. | |
GetCurrentSliders | Gets which slider(s) should be displayed. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetIconTitle | Included for portability only. | |
GetSize | Convenience routine on the window handle. | |
GetTitle | Gets window title. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUpdateFrequency | Gets the update frequency. | |
GetWidgetName | Returns the window handle name. | |
Hide | This hides the component. | |
IsAttached | Returns true if the editor is attached. | |
IsFullScreen | Queries if the viewer is in fullscreen mode. | |
IsFullScreenEnable | Queries if it is possible to put the viewer in fullscreen mode. | |
IsTopLevelShell | Returns true if this component is a top level shell component (has its own window). | |
IsVisible | Returns true if this component is mapped onto the screen. | |
IsWYSIWYG | Gets the WYSIWYG mode. | |
SetColor | Sets a new color value. | |
SetCurrentSliders | Sets which slider(s) should be displayed. | |
SetFullScreen | Switches the viewer into (or out of) fullscreen mode. | |
SetFullScreenEnable | Enables/disables fullscreen mode. | |
SetIconTitle | Included for portability only. | |
SetSize | Convenience routine on the window handle. | |
SetTitle | Sets window title. | |
SetUpdateFrequency | Sets the update frequency. | |
SetWYSIWYG | Sets the WYSIWYG (what-you-see-is-what-you-get) mode on/off for the colored backgrounds of the sliders. | |
Show | This shows the component. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AlwaysOnTop | ||
Handle |
Implements Handle.
(Inherited from SoWinComponent.) | |
WindowCloseCallback | Sets the delegate to invoke when the user closes this component (double click in the upper left corner) - by default Hide() is called on this component, unless a delegate is specified. |
Name | Description | |
---|---|---|
ColorChanged |
The OIV.Inventor.Win.SoWinColorEditor class lets you interactively edit colors using color sliders and a color wheel. You can either use it directly to edit a color field in the database by using the OIV.Inventor.Win.SoWinColorEditor.Attach(OIV.Inventor.Fields.SoSFColor, OIV.Inventor.Misc.SoBase)/detach() routines, or use it by registering a delegateroutine which will get called whenever the color changes (passing an OIV.Inventor.SbColor to that routine).
The editor can currently be attached to only one color at a time. Attaching two different colors will automatically detach the first one before attaching the second.