00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __MSS_LatticeSelector_h__
00021 #define __MSS_LatticeSelector_h__
00022
00023 #include "MSS_API.h"
00024 #include <OP3D/OP3D_GenericSelector.h>
00025
00026 class MSS_API MSS_LatticeSelector : public OP3D_GenericSelector
00027 {
00028 public:
00029 MSS_LatticeSelector(OP3D_View &viewer, PI_SelectorTemplate &templ);
00030 virtual ~MSS_LatticeSelector();
00031
00032 static BM_InputSelector *ourConstructor(BM_View &Viewer,
00033 PI_SelectorTemplate &templ);
00034
00035 virtual const char *className() const;
00036
00037 virtual void generateAdditionalInputNodes(SOP_Node &new_node,
00038 SOP_Node *input_node,
00039 const UT_String &sel_geometry_token,
00040 const UT_String &creator_state_name);
00041 private:
00042 SELECTOR_SETUP()
00043
00044 void generateLatticeModeInputNodes(SOP_Node &new_node,
00045 const UT_String &creator_state_name);
00046 void generatePointModeInputNodes(SOP_Node &new_node,
00047 SOP_Node *input_node,
00048 const UT_String &sel_geometry_token,
00049 const UT_String &creator_state_name);
00050 void setLatticeModeBoxParameters(SOP_Node &new_node,
00051 SOP_Node &bbox_node,
00052 const UT_String &sel_geometry_token);
00053 void setPointModeParameters(SOP_Node &new_node,
00054 SOP_Node &xform_node,
00055 const UT_String &sel_geometry_token);
00056 };
00057
00058 #endif