|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
#include <interface.h>
Inheritance diagram for lwpp::InterfaceInfo:
Collaboration diagram for lwpp::InterfaceInfo:Public Member Functions | |
| InterfaceInfo (void) | |
| int | alertLevel (void) |
| Returns the Alert Level specified on LightWave's Display Options. | |
| int | autoKeyCreate () |
| int | boxThreshold () |
| Returns the Bounding Box value on Layout Display options. | |
| LWTime | currentTime (void) |
| Returns the current time indicated by the frame slider on Layout. | |
| unsigned int | displayFlags (void) |
| int | dynamicUpdate (void) |
| unsigned int | generalFlags (void) |
| Returns the value of several general flags state. | |
| void | getBonesDefaultColor (float color[3]) |
| Gets the default drawing color for Bones in viewports. | |
| void | getCamerasDefaultColor (float color[3]) |
| Gets the default drawing color for Cameras in viewports. | |
| void | getItemColour (LWItemID item, float rgba[4]) |
| float | getItemIconScale (LWItemID item) |
| Returns the icon scale of the Item in Layout's Viewports. | |
| void | getLightsDefaultColor (float color[3]) |
| Gets the default drawing color for Lights in Viewports. | |
| void | getObjectsDefaultColor (float color[3]) |
| Gets the default color for draw Objects on Layout's Viewports. | |
| bool | isAutoKeyCreateAllChannels (void) |
| Returns true if Auto Key Create is All Channels in Layout's General Preferences. | |
| bool | isAutoKeyCreateModChannels (void) |
| Returns true if Auto Key Create is Only Modificed Channels in Layout's General Preferences. | |
| bool | isAutoKeyCreateOff (void) |
| Returns true if Auto Key Create in Layout's General Preferences. | |
| bool | isAutoKeyOn (void) |
| Returns true if Auto Key is active on Layout Interface. | |
| bool | isCagesDisplayed (void) |
| Returns true if sub-patch cages are displayed on Layout's interface. | |
| bool | isDynamicUpdateDelayed (void) |
| Returns true if the Dynamic Update on Layout Display Options is delayed. | |
| bool | isDynamicUpdateInteractive (void) |
| Returns true if the Dynamic Update on Layout Display Options is interactive. | |
| bool | isDynamicUpdateOff (void) |
| Returns true if the Dynamic Update on Layout Display Options is off. | |
| bool | isFieldChartDisplayed (void) |
| Returns true if the Field Chart is displayed on Layout's Camera View. | |
| bool | isFractionalFrames (void) |
| Returns true if Fractional Frames is active. | |
| bool | isHandlesDisplayed (void) |
| Returns true if Handles are displayed on Layout's interface. | |
| bool | isIKChainsDisplayed (void) |
| Returns true if IK Chains are displayed on Layout's interface. | |
| bool | isIKOn (void) |
| Returns true if Inverse Kinematics is active on Layout Interface. | |
| bool | isItemBBox (LWItemID item) |
| Returns true if the item is showed as a Bounding Box on Layout's interface. | |
| bool | isItemFrontFace (LWItemID item) |
| Returns true if the item is showed as Front Face Wireframe on Layout's interface. | |
| bool | isItemHidden (LWItemID item) |
| Returns true if the item is hidden on Layout's interface. | |
| bool | isItemShaded (LWItemID item) |
| Returns true if the item is showed as Shaded on Layout's interface. | |
| bool | isItemTextured (LWItemID item) |
| Returns true if the item is showed as Textured on Layout's interface. | |
| bool | isItemTexturedShaded (LWItemID item) |
| Returns true if the item is showed as Textured Shaded on Layout's interface. | |
| bool | isItemVertices (LWItemID item) |
| Returns true if the item is showed as Vertices on Layout's interface. | |
| bool | isItemWireframe (LWItemID item) |
| Returns true if the item is showed as Wireframe on Layout's interface. | |
| bool | isKeyFramesVisible (void) |
| Returns true if Keys are visible on the timeline. | |
| bool | isLMBSelectionOn (void) |
| Returns true if Left button Item Select is active on Layout General Preferences. | |
| bool | isMotionPathsDisplayed (void) |
| Returns true if Motion Paths are displayed on Layout's interface. | |
| bool | isParentInPlace (void) |
| Returns true if Parent in Place is active. | |
| bool | isPlayAtExactRate (void) |
| Returns true if Play At Exact Rate is active on Layout General Preferences. | |
| bool | isSafeAreasDisplayed (void) |
| Returns true if Safe Areas are displayed on Layout's Camera View. | |
| bool | isToolBarHidden (void) |
| Returns true if the Tool Bar is hidden on Layout's Interface. | |
| bool | isToolBarRight (void) |
| Returns true if the Tool Bar is displayed on the right side of Layout's Interface. | |
| int | itemColor (LWItemID item) |
| Returns the index of the color used on Wireframe to draw the item in Layout Viewports. | |
| unsigned int | itemFlags (LWItemID item) |
| Returns the flags associated with the LWItemID. | |
| int | itemVisibility (LWItemID item) |
| LWFrame | previewEnd (void) |
| Returns the End Frame defined for previews on Layout Preview options. | |
| LWFrame | previewStart (void) |
| Returns the Start Frame defined for previews on Layout Preview options. | |
| LWFrame | previewStep (void) |
| Returns the Step Frame defined for previews on Layout Preview options. | |
| Point3d | schematicPosition (LWItemID item) |
| lwpp::LWItem | selectedItem () const |
| Returns the lwpp::LWItem of the selected Item in Layout, or the first selected item of a multiple selection. | |
| std::vector< lwpp::LWItem > | selectedItems () const |
| Returns a std::vector<lwpp::LWItem> with 1 or multiple elements depending the selected Items in Layout. | |
| void | setBonesDefaultColor (float color[3]) |
| Changes the default color for Bones on Layout's Viewports. | |
| void | setCamerasDefaultColor (float color[3]) |
| Changes the default color for Cameras on Layout's Viewports. | |
| void | setItemColorCustom (LWItemID item, double *color) |
| Changes the color to the item using 0.0 to 1.0 values for each R,G,B. | |
| void | setItemColorIndex (LWItemID item, int color) |
| Changes the color to the item to one of the indexed colors. | |
| void | setLightsDefaultColor (float color) |
| Changes the default color for Lights on Layout's Viewports. | |
| void | setObjectsDefaultColor (float color) |
| Changes the default color for draw objects on Layout's Viewports. | |
| bool | showError (void) |
| Returns true if the alert level is expert on LightWave's Display Options. | |
| bool | showInfo (void) |
| Returns true if the alert level is beginner on LightWave's Display Options. | |
| bool | showWarning (void) |
| Returns true if the alert level is intermediate on LightWave's Display Options. | |
Protected Member Functions | |
| bool | _acquireGlobal () |
| virtual bool | available () const |
| Check if the global is available. | |
| virtual LWInterfaceInfo * | getGlobal () |
| Get the pointer to the global. | |
| LWInterfaceInfo * | operator-> () |
| Get the pointer to the global. | |
Static Protected Attributes | |
| static LWInterfaceInfo * | globPtr |
| Pointer to the global functions. | |
Use this class to get several information about the state of LightWave's Layout Interface Usage: On your header declare a member lwpp::InterfaceInfo intInfo; Initialize it like this: (for example in the constructor of your plugin class) intInfo = lwpp::InterfaceInfo(); NOTE: InterfaceInfo need to be re-created EVERY time before it's used, to be sure it contains updated information about Lightwave's Interface
|
inline |
|
inlineprotectedinherited |
|
inline |
Returns the Alert Level specified on LightWave's Display Options.
|
inline |
Returns one of the three possible states of the Auto Create Key setting in Layout's General Preferences
|
inlinevirtualinherited |
Check if the global is available.
|
inline |
Returns the Bounding Box value on Layout Display options.
|
inline |
Returns the current time indicated by the frame slider on Layout.
|
inline |
|
inline |
Returns an int indicating one of the three posible states of Dynamic Update in Layout Display Options
|
inline |
Returns the value of several general flags state.
|
inline |
Gets the default drawing color for Bones in viewports.
| [out] | color | will contain the colour as a float RGB triplet |
|
inline |
Gets the default drawing color for Cameras in viewports.
| [out] | color | will contain the colour as a float RGB triplet |
|
inlinevirtualinherited |
Get the pointer to the global.
|
inline |
|
inline |
Returns the icon scale of the Item in Layout's Viewports.
It's used to size the icon of the item on them.
|
inline |
Gets the default drawing color for Lights in Viewports.
| [out] | color | will contain the colour as a float RGB triplet |
|
inline |
Gets the default color for draw Objects on Layout's Viewports.
| [out] | color | will contain the colour as a float RGB triplet |
|
inline |
Returns true if Auto Key Create is All Channels in Layout's General Preferences.
|
inline |
Returns true if Auto Key Create is Only Modificed Channels in Layout's General Preferences.
|
inline |
Returns true if Auto Key Create in Layout's General Preferences.
|
inline |
Returns true if Auto Key is active on Layout Interface.
|
inline |
Returns true if sub-patch cages are displayed on Layout's interface.
|
inline |
Returns true if the Dynamic Update on Layout Display Options is delayed.
|
inline |
Returns true if the Dynamic Update on Layout Display Options is interactive.
|
inline |
Returns true if the Dynamic Update on Layout Display Options is off.
|
inline |
Returns true if the Field Chart is displayed on Layout's Camera View.
|
inline |
Returns true if Fractional Frames is active.
|
inline |
Returns true if Handles are displayed on Layout's interface.
|
inline |
Returns true if IK Chains are displayed on Layout's interface.
|
inline |
Returns true if Inverse Kinematics is active on Layout Interface.
|
inline |
Returns true if the item is showed as a Bounding Box on Layout's interface.
|
inline |
Returns true if the item is showed as Front Face Wireframe on Layout's interface.
|
inline |
Returns true if the item is hidden on Layout's interface.
|
inline |
Returns true if the item is showed as Shaded on Layout's interface.
|
inline |
Returns true if the item is showed as Textured on Layout's interface.
|
inline |
Returns true if the item is showed as Textured Shaded on Layout's interface.
|
inline |
Returns true if the item is showed as Vertices on Layout's interface.
|
inline |
Returns true if the item is showed as Wireframe on Layout's interface.
|
inline |
Returns true if Keys are visible on the timeline.
|
inline |
Returns true if Left button Item Select is active on Layout General Preferences.
|
inline |
Returns true if Motion Paths are displayed on Layout's interface.
|
inline |
Returns true if Parent in Place is active.
|
inline |
Returns true if Play At Exact Rate is active on Layout General Preferences.
|
inline |
Returns true if Safe Areas are displayed on Layout's Camera View.
|
inline |
Returns true if the Tool Bar is hidden on Layout's Interface.
|
inline |
Returns true if the Tool Bar is displayed on the right side of Layout's Interface.
|
inline |
Returns the index of the color used on Wireframe to draw the item in Layout Viewports.
|
inline |
Returns the flags associated with the LWItemID.
|
inline |
Retirns an int indicating one of the eight possible shading states of an Item
|
inlineinherited |
Get the pointer to the global.
|
inline |
Returns the End Frame defined for previews on Layout Preview options.
|
inline |
Returns the Start Frame defined for previews on Layout Preview options.
|
inline |
Returns the Step Frame defined for previews on Layout Preview options.
|
inline |
Returns a lwpp::Point3d with it's x and y members indicating it's position inside the Schematic View
| lwpp::LWItem lwpp::InterfaceInfo::selectedItem | ( | void | ) | const |
Returns the lwpp::LWItem of the selected Item in Layout, or the first selected item of a multiple selection.
| std::vector< lwpp::LWItem > lwpp::InterfaceInfo::selectedItems | ( | ) | const |
Returns a std::vector<lwpp::LWItem> with 1 or multiple elements depending the selected Items in Layout.
|
inline |
Changes the default color for Bones on Layout's Viewports.
| [out] | color | will contain the colour as a float RGB triplet |
|
inline |
Changes the default color for Cameras on Layout's Viewports.
| [out] | color | will contain the colour as a float RGB triplet |
|
inline |
Changes the color to the item using 0.0 to 1.0 values for each R,G,B.
| [in] | item | the itemid of the item to change |
| [in] | color | the new colour as a float RGB triplet |
|
inline |
Changes the color to the item to one of the indexed colors.
| [in] | item | the itemid of the item to change |
| [in] | color | the new colour as an index or a a 24bit color if you set the upper byte of a 32bit color to 0x01. I.e. Red will be 0x01FF0000 |
|
inline |
Changes the default color for Lights on Layout's Viewports.
| [out] | color | will contain the colour as a float RGB triplet |
|
inline |
Changes the default color for draw objects on Layout's Viewports.
| [out] | color | will contain the colour as a float RGB triplet |
|
inline |
Returns true if the alert level is expert on LightWave's Display Options.
|
inline |
Returns true if the alert level is beginner on LightWave's Display Options.
|
inline |
Returns true if the alert level is intermediate on LightWave's Display Options.
|
staticprotectedinherited |
Pointer to the global functions.