SoWinMaterialEditor Class |
Component which lets you edit a material interactively.
Namespace: OIV.Inventor.Win
The SoWinMaterialEditor type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoWinMaterialEditor | Calls SoWinMaterialEditor((System.Windows.Forms.Control ^)nullptr, (System.String ^)nullptr, true). |
![]() | SoWinMaterialEditor(Control) | Calls SoWinMaterialEditor(parent, (System.String ^)nullptr, true). |
![]() | SoWinMaterialEditor(Control, String) | Calls SoWinMaterialEditor(parent, name, true). |
![]() | SoWinMaterialEditor(Control, String, Boolean) | Constructor. |
Name | Description | |
---|---|---|
![]() | Attach(SoMaterial) | Calls Attach(material, System.Int32(0)). |
![]() | Attach(SoMaterial, Int32) | Attaches the editor to a material node and edits the material of the given index. |
![]() | Detach | Detaches the editor from the material node. |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | GetClassName | Returns the class name. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetIconTitle | Included for portability only. |
![]() | GetMaterial | Gets the current material value. |
![]() | 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. |
![]() | SetFullScreen | Switches the viewer into (or out of) fullscreen mode. |
![]() | SetFullScreenEnable | Enables/disables fullscreen mode. |
![]() | SetIconTitle | Included for portability only. |
![]() | SetMaterial | Sets a new material value. |
![]() | SetSize | Convenience routine on the window handle. |
![]() | SetTitle | Sets window title. |
![]() | SetUpdateFrequency | Sets the update frequency. |
![]() | 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 | |
---|---|---|
![]() | MaterialChanged |
This class is used to edit the material properties of an OIV.Inventor.Nodes.SoMaterial node. The editor can also directly be used using callbacks instead of attaching it to a node. The component consists of a render area displaying a test sphere, some sliders, a set of radio buttons, and a menu. The sphere displays the current material being edited. There is one slider for each material coefficient. Those fields are ambient, diffuse, specular, emissive (all of which are colors); and transparency and shininess (which are scalar values). A color editor can be opened to edit the color slider base color. A material list displays palettes of predefined materials from which to choose.
The editor can currently be attached to only one material at a time. Attaching two different materials will automatically detach the first one before attaching the second.