Public Member Functions |
| | NodeHandler (void *priv, void *context, LWError *err) |
| virtual | ~NodeHandler () |
| virtual void | ChangeID (const LWItemID *id_list) |
| LWChanGroupID | chanGrp () |
| virtual void | Cleanup () |
| virtual void | CustomPreview (int width, int height) |
| virtual const char * | DescLn () |
| void | disconnect (LWNodeInput *nid) |
| virtual void | Evaluate (LWNodalAccess *na, NodeOutputID outID, NodeValue value) |
| NodeInputID | firstInput (void) |
| NodeOutputID | firstOutput (void) |
| virtual unsigned int | Flags () |
| NodeID | getID (void) |
| ConnectionType | getType (NodeValue val) |
| void * | getValue (NodeValue val) |
| virtual LWError | Init (int mode) |
| NodeInputID | inputByIndex (int n) |
| int | inputGetIndex (NodeInputID nid) |
| virtual LWError | Load (const LoadState &ls) |
| | Load data from a LWLoadState.
|
| virtual LWError | NewTime (LWFrame frame, LWTime time) |
| const char * | nodeName () |
| int | numInputs (void) |
| int | numOutputs (void) |
| NodeOutputID | outputByIndex (int n) |
| int | outputGetIndex (NodeOutputID nid) |
| virtual LWError | Save (const SaveState &ss) |
| | Save data to a LWSaveState.
|
| const char * | serverUserName () |
| void | SetClassName (const char *n) |
| void | SetDescription (const char *n) |
| void | SetDescription (const std::string &s) |
| void | setID (NodeID _id) |
| void | SetName (const char *n) |
| 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 | Update () |
| void | Update (const char *cName) |
| void | UpdateNodePreview () |
| | Immediately update the preview for this node.
|
| virtual const LWItemID * | UseItems () |
|
|
| LWNodeInput * | addColorInput (const std::string name="Color") |
| LWNodeInput * | addColourInput (const std::string name="Colour") |
| LWNodeInput * | addScalarInput (const std::string name="Scalar") |
| LWNodeInput * | addVectorInput (const std::string name="Vector") |
| LWNodeInput * | addIntegerInput (const std::string name="Integer") |
| LWNodeInput * | addFunctionInput (const std::string name="Function") |
| LWNodeInput * | addMaterialInput (const std::string name="Material") |
|
Create nodal inputs handles by a std::auto_ptr
|
| auto_NodeInput | autoColorInput (const std::string name="Color") |
| auto_NodeInput | autoColourInput (const std::string name="Colour") |
| auto_NodeInput | autoScalarInput (const std::string name="Scalar") |
| auto_NodeInput | autoVectorInput (const std::string name="Vector") |
| auto_NodeInput | autoIntegerInput (const std::string name="Integer") |
| auto_NodeInput | autoFunctionInput (const std::string name="Function") |
| auto_NodeInput | autoMaterialInput (const std::string name="Material") |
|
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) |
|
|
| LWNodeOutput * | addColorOutput (const std::string name="Color") |
| LWNodeOutput * | addColourOutput (const std::string name="Colour") |
| LWNodeOutput * | addScalarOutput (const std::string name="Scalar") |
| LWNodeOutput * | addVectorOutput (const std::string name="Vector") |
| LWNodeOutput * | addIntegerOutput (const std::string name="Integer") |
| LWNodeOutput * | addFunctionOutput (const std::string name="Function") |
| LWNodeOutput * | addMaterialOutput (const std::string name="Material") |
|
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") |
|
Functions to add node inputs
|
| LWNodeInput * | addColorInput (const std::string name="Color", NodeInputEvent *inp_event=0) |
| LWNodeInput * | addColourInput (const std::string name="Colour", NodeInputEvent *inp_event=0) |
| LWNodeInput * | addScalarInput (const std::string name="Scalar", NodeInputEvent *inp_event=0) |
| LWNodeInput * | addVectorInput (const std::string name="Vector", NodeInputEvent *inp_event=0) |
| LWNodeInput * | addIntegerInput (const std::string name="Integer", NodeInputEvent *inp_event=0) |
| LWNodeInput * | addFunctionInput (const std::string name="Function", NodeInputEvent *inp_event=0) |
| LWNodeInput * | addMaterialInput (const std::string name="Material", NodeInputEvent *inp_event=0) |