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

#include <nodeeditor.h>

+ Inheritance diagram for lwpp::NodeEditor:
+ Collaboration diagram for lwpp::NodeEditor:

List of all members.

Public Member Functions

 NodeEditor (NodeEditorID id=0, bool destroy=false)
 NodeEditor (const std::string rootName, const std::string panelTitle, RootNode *rn, NodePreviewType previewType=NPT_RENDER, bool destroy=true)
 ~NodeEditor ()
void cleanup ()
LWError copy (NodeEditorID from)
bool create (const std::string rootName, const std::string panelTitle, RootNode *rn, NodePreviewType previewType=NPT_RENDER)
void destroy ()
NodeEditorID getId () const
NodeInputID getInputByIndex (int idx)
NodeInputID getInputByName (const std::string name)
NodeID getRootNodeID ()
const unsigned short getState () const
template<typename T >
T * getUserData ()
LWError init (int renderMode)
bool isOpenNodeEditor ()
virtual LWError Load (const LoadState &ls)
 Load data from a LWLoadState.
LWError newTime (LWFrame frame, LWTime time)
const int numberOfNodes () const
bool OpenNodeEditor ()
NodeEditoroperator= (const NodeEditor &from)
void rename (const std::string newName)
virtual LWError Save (const SaveState &ss)
 Save data to a LWSaveState.
void setAutosize (nodeAutoSizeFunc *func)
void setEnvGroup (LWChanGroupID cId)
void setState (unsigned short int state)
void setUpdateFunc (nodeEditorUpdateFunc *func)
void setUserData (void *data)
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)

Protected Member Functions

bool _acquireGlobal ()
LWNodeInputaddInput (ConnectionType type, const std::string name, NodeInputEvent *inp_event)
virtual bool available () const
 Check if the global is available.
virtual LWNodeEditorFuncs * getGlobal ()
 Get the pointer to the global.
LWNodeEditorFuncs * operator-> ()
 Get the pointer to the global.

Protected Attributes

bool do_destroy
NodeEditorID mId
LWRootNode mRootNode

Static Protected Attributes

static LWNodeEditorFuncs * globPtr
 Pointer to the global functions.

Constructor & Destructor Documentation

lwpp::NodeEditor::NodeEditor ( NodeEditorID  id = 0,
bool  destroy = false 
)
inline
lwpp::NodeEditor::NodeEditor ( const std::string  rootName,
const std::string  panelTitle,
RootNode rn,
NodePreviewType  previewType = NPT_RENDER,
bool  destroy = true 
)
inline
lwpp::NodeEditor::~NodeEditor ( )
inline

Member Function Documentation

bool lwpp::GlobalBase< LWNodeEditorFuncs >::_acquireGlobal ( )
inlineprotectedinherited
LWNodeInput* lwpp::NodeInputHelper::addColorInput ( const std::string  name = "Color",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeInput* lwpp::NodeInputHelper::addColourInput ( const std::string  name = "Colour",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeInput* lwpp::NodeInputHelper::addFunctionInput ( const std::string  name = "Function",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeInput* lwpp::NodeEditor::addInput ( ConnectionType  type,
const std::string  name,
NodeInputEvent *  inp_event 
)
inlineprotectedvirtual

Implements lwpp::NodeInputHelper.

LWNodeInput* lwpp::NodeInputHelper::addIntegerInput ( const std::string  name = "Integer",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeInput* lwpp::NodeInputHelper::addMaterialInput ( const std::string  name = "Material",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeInput* lwpp::NodeInputHelper::addScalarInput ( const std::string  name = "Scalar",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
LWNodeInput* lwpp::NodeInputHelper::addVectorInput ( const std::string  name = "Vector",
NodeInputEvent *  inp_event = 0 
)
inlineinherited
virtual bool lwpp::GlobalBase< LWNodeEditorFuncs >::available ( ) const
inlinevirtualinherited

Check if the global is available.

void lwpp::NodeEditor::cleanup ( )
inline
LWError lwpp::NodeEditor::copy ( NodeEditorID  from)
inline
bool lwpp::NodeEditor::create ( const std::string  rootName,
const std::string  panelTitle,
RootNode rn,
NodePreviewType  previewType = NPT_RENDER 
)
void lwpp::NodeEditor::destroy ( )
inline
virtual LWNodeEditorFuncs * lwpp::GlobalBase< LWNodeEditorFuncs >::getGlobal ( )
inlinevirtualinherited

Get the pointer to the global.

NodeEditorID lwpp::NodeEditor::getId ( ) const
inline
NodeInputID lwpp::NodeEditor::getInputByIndex ( int  idx)
inline
NodeInputID lwpp::NodeEditor::getInputByName ( const std::string  name)
inline
NodeID lwpp::NodeEditor::getRootNodeID ( )
inline
const unsigned short lwpp::NodeEditor::getState ( void  ) const
inline
template<typename T >
T* lwpp::NodeEditor::getUserData ( )
inline
LWError lwpp::NodeEditor::init ( int  renderMode)
inline
bool lwpp::NodeEditor::isOpenNodeEditor ( )
inline
virtual LWError lwpp::NodeEditor::Load ( const LoadState ls)
inlinevirtual

Load data from a LWLoadState.

Parameters:
*lsLWLoadState to load from
Returns:
An error string if an error occured, 0 otherwise

Reimplemented from lwpp::Storeable.

LWError lwpp::NodeEditor::newTime ( LWFrame  frame,
LWTime  time 
)
inline
const int lwpp::NodeEditor::numberOfNodes ( ) const
inline
bool lwpp::NodeEditor::OpenNodeEditor ( )
inline
LWNodeEditorFuncs * lwpp::GlobalBase< LWNodeEditorFuncs >::operator-> ( )
inlineinherited

Get the pointer to the global.

NodeEditor& lwpp::NodeEditor::operator= ( const NodeEditor from)
inline
void lwpp::NodeEditor::rename ( const std::string  newName)
inline
virtual LWError lwpp::NodeEditor::Save ( const SaveState ss)
inlinevirtual

Save data to a LWSaveState.

Parameters:
*ssLWSaveState to save to
Returns:
An error string if an error occured, 0 otherwise

Reimplemented from lwpp::Storeable.

void lwpp::NodeEditor::setAutosize ( nodeAutoSizeFunc *  func)
inline
void lwpp::NodeEditor::setEnvGroup ( LWChanGroupID  cId)
inline
void lwpp::NodeEditor::setState ( unsigned short int  state)
inline
void lwpp::NodeEditor::setUpdateFunc ( nodeEditorUpdateFunc *  func)
inline
void lwpp::NodeEditor::setUserData ( void *  data)
inline

Member Data Documentation

bool lwpp::NodeEditor::do_destroy
protected
LWNodeEditorFuncs * lwpp::GlobalBase< LWNodeEditorFuncs >::globPtr
staticprotectedinherited

Pointer to the global functions.

NodeEditorID lwpp::NodeEditor::mId
protected
LWRootNode lwpp::NodeEditor::mRootNode
protected

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