LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::LWNode Class Reference

#include <nodes.h>

+ Inheritance diagram for lwpp::LWNode:
+ Collaboration diagram for lwpp::LWNode:

List of all members.

Public Member Functions

 LWNode (NodeID _id=0)
virtual ~LWNode ()
LWChanGroupID chanGrp ()
void disconnect (LWNodeInput *nid)
NodeInputID firstInput (void)
NodeOutputID firstOutput (void)
NodeID getID (void)
ConnectionType getType (NodeValue val)
void * getValue (NodeValue val)
NodeInputID inputByIndex (int n)
int inputGetIndex (NodeInputID nid)
const char * nodeName ()
int numInputs (void)
int numOutputs (void)
NodeOutputID outputByIndex (int n)
int outputGetIndex (NodeOutputID nid)
const char * serverUserName ()
void setID (NodeID _id)
void setNodeColor (int col[3])
 Set the GUI colours for this node.
void setNodeColor (int r, int g, int b)
 Set the GUI colours for this node.
void setNodePreviewType (NodePreviewType type)
void UpdateNodePreview ()
 Immediately update the preview for this node.
Outputs

Adding node outputs

LWNodeOutputaddColorOutput (const std::string name="Color")
LWNodeOutputaddColourOutput (const std::string name="Colour")
LWNodeOutputaddScalarOutput (const std::string name="Scalar")
LWNodeOutputaddVectorOutput (const std::string name="Vector")
LWNodeOutputaddIntegerOutput (const std::string name="Integer")
LWNodeOutputaddFunctionOutput (const std::string name="Function")
LWNodeOutputaddMaterialOutput (const std::string name="Material")
auto_Outputs

Adding node outputs that are managed by std::auto_ptr

auto_NodeOutput autoColorOutput (const std::string name="Color")
auto_NodeOutput autoColourOutput (const std::string name="Colour")
auto_NodeOutput autoScalarOutput (const std::string name="Scalar")
auto_NodeOutput autoVectorOutput (const std::string name="Vector")
auto_NodeOutput autoIntegerOutput (const std::string name="Integer")
auto_NodeOutput autoFunctionOutput (const std::string name="Function")
auto_NodeOutput autoMaterialOutput (const std::string name="Material")
Returning values during the node evaluation

These functions can only be called in evaluate.

void setValue (NodeValue val, double *v)
void setValue (NodeValue val, LWDVector *v)
void setValue (NodeValue val, double a, double b, double c)
void setValue (NodeValue val, float v[3])
void setValue (NodeValue val, float v)
void setValue (NodeValue val, double v)
void setValue (NodeValue val, int *v)
void setValue (NodeValue val, unsigned int *v)
void setValue (NodeValue val, bool v)
void setValue (NodeValue val, LWNodalMaterial *material)
void setValue (NodeValue val, Vector3d &v)
Node Inputs

Functions to add node inputs

LWNodeInputaddColorInput (const std::string name="Color", NodeInputEvent *inp_event=0)
LWNodeInputaddColourInput (const std::string name="Colour", NodeInputEvent *inp_event=0)
LWNodeInputaddScalarInput (const std::string name="Scalar", NodeInputEvent *inp_event=0)
LWNodeInputaddVectorInput (const std::string name="Vector", NodeInputEvent *inp_event=0)
LWNodeInputaddIntegerInput (const std::string name="Integer", NodeInputEvent *inp_event=0)
LWNodeInputaddFunctionInput (const std::string name="Function", NodeInputEvent *inp_event=0)
LWNodeInputaddMaterialInput (const std::string name="Material", NodeInputEvent *inp_event=0)

Private Member Functions

bool _acquireGlobal ()
virtual bool available () const
 Check if the global is available.
virtual LWNodeFuncs * getGlobal ()
 Get the pointer to the global.
LWNodeFuncs * operator-> ()
 Get the pointer to the global.

Static Private Attributes

static LWNodeFuncs * globPtr
 Pointer to the global functions.

Detailed Description

LightWave Node


Constructor & Destructor Documentation

lwpp::LWNode::LWNode ( NodeID  _id = 0)
lwpp::LWNode::~LWNode ( )
virtual

Member Function Documentation

LWNodeInput* lwpp::NodeInputHelper::addColorInput ( const std::string  name = "Color",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeOutput* lwpp::LWNode::addColorOutput ( const std::string  name = "Color")
inline
LWNodeInput* lwpp::NodeInputHelper::addColourInput ( const std::string  name = "Colour",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeOutput* lwpp::LWNode::addColourOutput ( const std::string  name = "Colour")
inline
LWNodeInput* lwpp::NodeInputHelper::addFunctionInput ( const std::string  name = "Function",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeOutput* lwpp::LWNode::addFunctionOutput ( const std::string  name = "Function")
inline
LWNodeInput* lwpp::NodeInputHelper::addIntegerInput ( const std::string  name = "Integer",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeOutput* lwpp::LWNode::addIntegerOutput ( const std::string  name = "Integer")
inline
LWNodeInput* lwpp::NodeInputHelper::addMaterialInput ( const std::string  name = "Material",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeOutput* lwpp::LWNode::addMaterialOutput ( const std::string  name = "Material")
inline
LWNodeInput* lwpp::NodeInputHelper::addScalarInput ( const std::string  name = "Scalar",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeOutput* lwpp::LWNode::addScalarOutput ( const std::string  name = "Scalar")
inline
LWNodeInput* lwpp::NodeInputHelper::addVectorInput ( const std::string  name = "Vector",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeOutput* lwpp::LWNode::addVectorOutput ( const std::string  name = "Vector")
inline
auto_NodeOutput lwpp::LWNode::autoColorOutput ( const std::string  name = "Color")
inline
auto_NodeOutput lwpp::LWNode::autoColourOutput ( const std::string  name = "Colour")
inline
auto_NodeOutput lwpp::LWNode::autoFunctionOutput ( const std::string  name = "Function")
inline
auto_NodeOutput lwpp::LWNode::autoIntegerOutput ( const std::string  name = "Integer")
inline
auto_NodeOutput lwpp::LWNode::autoMaterialOutput ( const std::string  name = "Material")
inline
auto_NodeOutput lwpp::LWNode::autoScalarOutput ( const std::string  name = "Scalar")
inline
auto_NodeOutput lwpp::LWNode::autoVectorOutput ( const std::string  name = "Vector")
inline
LWChanGroupID lwpp::LWNode::chanGrp ( )
inline
void lwpp::LWNode::disconnect ( LWNodeInput nid)
inline
NodeInputID lwpp::LWNode::firstInput ( void  )
inline
NodeOutputID lwpp::LWNode::firstOutput ( void  )
inline
NodeID lwpp::LWNode::getID ( void  )
inline
ConnectionType lwpp::LWNode::getType ( NodeValue  val)
inline
void* lwpp::LWNode::getValue ( NodeValue  val)
inline
NodeInputID lwpp::LWNode::inputByIndex ( int  n)
inline
int lwpp::LWNode::inputGetIndex ( NodeInputID  nid)
inline
const char* lwpp::LWNode::nodeName ( )
inline
int lwpp::LWNode::numInputs ( void  )
inline
int lwpp::LWNode::numOutputs ( void  )
inline
NodeOutputID lwpp::LWNode::outputByIndex ( int  n)
inline
int lwpp::LWNode::outputGetIndex ( NodeOutputID  nid)
inline
const char* lwpp::LWNode::serverUserName ( )
inline
void lwpp::LWNode::setID ( NodeID  _id)
inline
void lwpp::LWNode::setNodeColor ( int  col[3])
inline

Set the GUI colours for this node.

void lwpp::LWNode::setNodeColor ( int  r,
int  g,
int  b 
)
inline

Set the GUI colours for this node.

void lwpp::LWNode::setNodePreviewType ( NodePreviewType  type)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
double *  v 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
LWDVector *  v 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
double  a,
double  b,
double  c 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
float  v[3] 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
float  v 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
double  v 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
int *  v 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
unsigned int *  v 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
bool  v 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
LWNodalMaterial *  material 
)
inline
void lwpp::LWNode::setValue ( NodeValue  val,
Vector3d v 
)
inline
void lwpp::LWNode::UpdateNodePreview ( )
inline

Immediately update the preview for this node.


The documentation for this class was generated from the following files: