#include <modeler.h>
List of all members.
Public Member Functions |
| unsigned int | GetBoundingBox (EltOpLayer lyr, double *box=0) |
| | Returns the number of points in the layer selection.
|
| const char * | GetLayerList (EltOpLayer lyr, const char *name) |
| | Returns a string containing layer numbers for the given EltOpLayer and object.
|
| unsigned int | GetLayerMask (EltOpLayer lyr) |
| | Returns bits for the data layers included in the EltOpLayer selection.
|
| int | GetMode (int m) |
| | Returns the state of a user interface setting.
|
| int | GetNumLayers () |
| | Returns the number of data layers for the current object.
|
| const char * | GetObjectName () |
| | Returns the filename of the current object.
|
| const char * | GetSelectedVMap (int i, LWID *id) |
| | Returns the name of the currently selected vertex map, and stores the LWID of the vmap in the second argument.
|
| const char * | GetSurface () |
| | Returns the name of the current default surface.
|
Protected Member Functions |
| bool | _acquireGlobal () |
| virtual bool | available () const |
| | Check if the global is available.
|
| virtual LWStateQueryFuncs * | getGlobal () |
| | Get the pointer to the global.
|
| LWStateQueryFuncs * | operator-> () |
| | Get the pointer to the global.
|
Static Protected Attributes |
| static LWStateQueryFuncs * | globPtr |
| | Pointer to the global functions.
|
Member Function Documentation
Check if the global is available.
| unsigned int lwpp::ModelerState::GetBoundingBox |
( |
EltOpLayer |
lyr, |
|
|
double * |
box = 0 |
|
) |
| |
|
inline |
Returns the number of points in the layer selection.
If box isn't NULL, it is an array of six doubles that will receive the bounding box of the points in the layer selection, in the order (x0, x1, y0, y1, z0, z1).
| virtual LWStateQueryFuncs * lwpp::GlobalBase< LWStateQueryFuncs >::getGlobal |
( |
| ) |
|
|
inlinevirtualinherited |
Get the pointer to the global.
| const char* lwpp::ModelerState::GetLayerList |
( |
EltOpLayer |
lyr, |
|
|
const char * |
name |
|
) |
| |
|
inline |
Returns a string containing layer numbers for the given EltOpLayer and object.
The layer numbers in the string are separated by spaces, with the highest numbered layer listed first. The object name is its filename, or NULL for the current object
| unsigned int lwpp::ModelerState::GetLayerMask |
( |
EltOpLayer |
lyr | ) |
|
|
inline |
Returns bits for the data layers included in the EltOpLayer selection.
If bit i of the mask is set, then layer i + 1 of the current object belongs to the set defined by the oplayer argument. This function is provided primarily for backward compatibility. New code should use the GetLayerList function, which is designed for multiple objects and an unlimited number of layers.
| int lwpp::ModelerState::GetMode |
( |
int |
m | ) |
|
|
inline |
Returns the state of a user interface setting.
The setting codes are
- LWM_MODE_SELECTION Returns the selection mode (points, polygons, volume) as an integer.
- LWM_MODE_SYMMETRY Returns the state of the symmetry toggle.
| int lwpp::ModelerState::GetNumLayers |
( |
| ) |
|
|
inline |
Returns the number of data layers for the current object.
| const char* lwpp::ModelerState::GetObjectName |
( |
| ) |
|
|
inline |
Returns the filename of the current object.
If the geometry in the current layers hasn't been saved to a file yet, this returns the reference name (the name that would be returned by the Object Functions refName function). If no object has been loaded into Modeler, this returns NULL.
| const char* lwpp::ModelerState::GetSelectedVMap |
( |
int |
i, |
|
|
LWID * |
id |
|
) |
| |
|
inline |
Returns the name of the currently selected vertex map, and stores the LWID of the vmap in the second argument.
The index can be one of the following:
- LWM_VMAP_WEIGHT
- LWM_VMAP_TEXTURE
- LWM_VMAP_MORPH
| const char* lwpp::ModelerState::GetSurface |
( |
| ) |
|
|
inline |
Returns the name of the current default surface.
Get the pointer to the global.
Member Data Documentation
Pointer to the global functions.
The documentation for this class was generated from the following file: