|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
The Variant Parameter Class Wrapper. More...
#include <vparm.h>
Inheritance diagram for lwpp::VParm:
Collaboration diagram for lwpp::VParm:Public Member Functions | |
| VParm (int type, const std::string name, std::string plug_name, LWChanGroupID group=0, double v=0.0) | |
| VParm (int type, const std::string name, std::string plug_name, LWChanGroupID group, Vector3d &v) | |
| VParm (int type, const std::string name, std::string plug_name, ChannelGroup &group, double v=0.0) | |
| VParm (int type, const std::string name, std::string plug_name, ChannelGroup &group, Vector3d &v) | |
| virtual | ~VParm () |
| void | Abs () |
| T * | asLWVector () |
| void | Clear () |
| Vector3 | Cross (Vector3 a) const |
| T | Dot (Vector3 a) const |
| Get the Dot product. | |
| double | GetValue () const |
| float | GetValuef () const |
| LWVParmID | ID () |
| Return the LWVParmID for the current object. | |
| bool | isEnveloped () |
| virtual LWError | Load (const lwpp::LoadState &ls) |
| Load a VParm from a LW scene/object. | |
| T | Magnitude () const |
| Return the Length/Magnitude of the Vector3. | |
| void | NewTime (LWTime t) |
| Update the current time value (which is cached for faster access) | |
| Vector3 & | Normalize () |
| Normalize the Vector3. | |
| Vector3 | operator* (Vector3 b) |
| Vector3 | operator* (double b) |
| Vector3 & | operator*= (Vector3 b) |
| Vector3 & | operator*= (T b) |
| Vector3 | operator+ (Vector3 b) |
| Add a Vector3. | |
| Vector3 & | operator+= (Vector3 b) |
| Vector3 | operator- (Vector3 b) |
| Subtract a Vector3. | |
| Vector3 & | operator-= (Vector3 b) |
| Subtract a Vector3. | |
| Vector3 | operator/ (Vector3 b) |
| Vector3 | operator/ (T b) |
| Vector3 & | operator/= (Vector3 b) |
| Vector3 & | operator/= (T b) |
| VParm & | operator= (const VParm &from) |
| Copy values. | |
| void | Reset (const double d) |
| void | Reset (const Vector3d &v) |
| virtual LWError | Save (const lwpp::SaveState &ss) |
| Save a VParm to a LW scene/object. | |
| void | Set (const double d) |
| Set the current time Value to a new Value. | |
| void | Set (const Vector3d &v) |
| void | Set (const LWDVector v) |
| void | Set (const LWFVector v) |
| T | SphericalPhi () |
| T | SphericalTheta () |
| void | Translate (Vector3 dir, T distance) |
| T & | X () |
| T & | Y () |
| T & | Z () |
Public Attributes | |
| T | x |
| T | y |
| T | z |
| Storage for the vector components, use &x for LW compatibility. | |
Protected Member Functions | |
| bool | _acquireGlobal () |
| virtual bool | available () const |
| Check if the global is available. | |
| virtual LWVParmFuncs * | getGlobal () |
| Get the pointer to the global. | |
| LWVParmFuncs * | operator-> () |
| Get the pointer to the global. | |
Static Protected Attributes | |
| static LWVParmFuncs * | globPtr |
| Pointer to the global functions. | |
The Variant Parameter Class Wrapper.
The actual value is stored in a Vector3d, and you can treat the VParm as such.
| lwpp::VParm::VParm | ( | int | type, |
| const std::string | name, | ||
| std::string | plug_name, | ||
| LWChanGroupID | group = 0, |
||
| double | v = 0.0 |
||
| ) |
| lwpp::VParm::VParm | ( | int | type, |
| const std::string | name, | ||
| std::string | plug_name, | ||
| LWChanGroupID | group, | ||
| Vector3d & | v | ||
| ) |
| lwpp::VParm::VParm | ( | int | type, |
| const std::string | name, | ||
| std::string | plug_name, | ||
| ChannelGroup & | group, | ||
| double | v = 0.0 |
||
| ) |
| lwpp::VParm::VParm | ( | int | type, |
| const std::string | name, | ||
| std::string | plug_name, | ||
| ChannelGroup & | group, | ||
| Vector3d & | v | ||
| ) |
|
virtual |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Check if the global is available.
|
inline |
|
inlineinherited |
|
inlineinherited |
Get the Dot product.
|
inlinevirtualinherited |
Get the pointer to the global.
|
inline |
|
inline |
|
inline |
Return the LWVParmID for the current object.
|
inline |
|
virtual |
Load a VParm from a LW scene/object.
Reimplemented from lwpp::Storeable.
|
inlineinherited |
Return the Length/Magnitude of the Vector3.
|
inline |
Update the current time value (which is cached for faster access)
|
inlineinherited |
Normalize the Vector3.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Add a Vector3.
|
inlineinherited |
operator /// Add a Vector3
|
inlineinherited |
Subtract a Vector3.
|
inlineinherited |
Subtract a Vector3.
|
inlineinherited |
Get the pointer to the global.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
virtual |
Save a VParm to a LW scene/object.
Reimplemented from lwpp::Storeable.
|
inline |
Set the current time Value to a new Value.
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
staticprotectedinherited |
Pointer to the global functions.
|
inherited |
|
inherited |
|
inherited |
Storage for the vector components, use &x for LW compatibility.