Home Hierarchy Members Alphabetical Related Pages

nurbstexturesurface.h

Go to the documentation of this file.
00001 #ifndef XDKWRL_NURBSTEXTURESURFACE_H
00002 #define XDKWRL_NURBSTEXTURESURFACE_H
00003 
00004 #include <xdkwrl/config.h>
00005 #include <xdkwrl/node.h>
00006 #include <xdkwrl/fieldtypes/mffloat.h>
00007 #include <xdkwrl/fieldtypes/mfvec2f.h>
00008 #include <xdkwrl/fieldtypes/sfint32.h>
00009 
00010 namespace wrl
00011 {
00012   //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00013   // Interface of NurbsTextureSurface
00014   //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00015   class XDKWRL_EXPORT NurbsTextureSurface : public Node
00016   {
00017    public:
00018      NurbsTextureSurface(const char* name="");
00019      virtual ~NurbsTextureSurface();
00020      virtual inline unsigned int nbFields() const;
00021      virtual FieldHandle field(const std::string& n);
00022      virtual FieldHandle field(unsigned int i);
00023      virtual bool isSetToDefaultValue(unsigned int i) const;
00024      virtual inline unsigned int nbEventsIn() const;
00025      virtual EventInHandle eventIn(const std::string& n);
00026      virtual EventInHandle eventIn(unsigned int i);
00027      virtual inline unsigned int nbEventsOut() const;
00028      virtual EventOutHandle eventOut(const std::string& n);
00029      virtual EventOutHandle eventOut(unsigned int i);
00030      inline const char* typeName() const;
00031      virtual Node* duplicate() const;
00032      virtual Node* duplicate(std::map<const Node*,Node*>&) const;
00033      /*!@name Exposed Fields
00034       * A field that is capable of receiving events via an eventIn to 
00035       * change its value(s), and generating events via an eventOut 
00036       * when its value(s) change.
00037       */
00038       //!@{
00039       /*!
00040        * See <a href="#_details" class="md">Detailed Description</a>
00041        * for meaning of this field.
00042        * Default value is set to MFVec2f default value
00043        */
00044        MFVec2f    controlPoint;
00045       /*!
00046        * See <a href="#_details" class="md">Detailed Description</a>
00047        * for meaning of this field.
00048        * Default value is set to MFFloat default value
00049        */
00050        MFFloat    weight;
00051      //!@}
00052      /*!@name Fields
00053       * A property or attribute of a node. Each node type has a fixed set
00054       * of fields. Fields may contain various kinds of data and one or many
00055       * values. Each field has a default value.
00056       */
00057       //!@{
00058       /*!
00059        * See <a href="#_details" class="md">Detailed Description</a>
00060        * for meaning of this field.
00061        * Default value is set to 
00062        \code
00063        uDimension = 0;
00064         \endcode
00065        */
00066        SFInt32    uDimension;
00067       /*!
00068        * See <a href="#_details" class="md">Detailed Description</a>
00069        * for meaning of this field.
00070        * Default value is set to MFFloat default value
00071        */
00072        MFFloat    uKnot;
00073       /*!
00074        * See <a href="#_details" class="md">Detailed Description</a>
00075        * for meaning of this field.
00076        * Default value is set to 
00077        \code
00078        uOrder = 3;
00079         \endcode
00080        */
00081        SFInt32    uOrder;
00082       /*!
00083        * See <a href="#_details" class="md">Detailed Description</a>
00084        * for meaning of this field.
00085        * Default value is set to 
00086        \code
00087        vDimension = 0;
00088         \endcode
00089        */
00090        SFInt32    vDimension;
00091       /*!
00092        * See <a href="#_details" class="md">Detailed Description</a>
00093        * for meaning of this field.
00094        * Default value is set to MFFloat default value
00095        */
00096        MFFloat    vKnot;
00097       /*!
00098        * See <a href="#_details" class="md">Detailed Description</a>
00099        * for meaning of this field.
00100        * Default value is set to 
00101        \code
00102        vOrder = 3;
00103         \endcode
00104        */
00105        SFInt32    vOrder;
00106      //!@}
00107      /*!@name Events In
00108       * 
00109       */
00110       //!@{
00111       /*!
00112        * Set event associated to exposedField controlPoint
00113        */
00114        EventIn<MFVec2f>    set_controlPoint;
00115       /*!
00116        * Set event associated to exposedField weight
00117        */
00118        EventIn<MFFloat>    set_weight;
00119   //!@}
00120      /*!@name Events Out
00121       * 
00122       */
00123       //!@{
00124       /*!
00125        * Changed event associated to exposedField controlPoint
00126        */
00127        EventOut<MFVec2f>    controlPoint_changed;
00128       /*!
00129        * Changed event associated to exposedField weight
00130        */
00131        EventOut<MFFloat>    weight_changed;
00132   //!@}
00133   };
00134 };
00135 //************************************************************
00136 // Implementation of NurbsTextureSurface
00137 //************************************************************
00138 /*!
00139  * Returns <code>"NurbsTextureSurface"</code>. Useful for printing.
00140  */
00141 inline const char*
00142 wrl::NurbsTextureSurface::typeName() const
00143 {
00144   return "NurbsTextureSurface";
00145 }
00146 /*!
00147  * Returns the number of fields (exposed or not) for this node type.
00148  */
00149 inline unsigned int
00150 wrl::NurbsTextureSurface::nbFields() const
00151 {
00152    return 8;
00153 }
00154 /*!
00155  * Returns the number of events in for this node type.
00156  */
00157 inline unsigned int
00158 wrl::NurbsTextureSurface::nbEventsIn() const
00159 {
00160    return 0;
00161 }
00162 /*!
00163  * Returns the number of events out for this node type.
00164  */
00165 inline unsigned int
00166 wrl::NurbsTextureSurface::nbEventsOut() const
00167 {
00168    return 0;
00169 }
00170 #endif // XDKWRL_NURBSTEXTURESURFACE_H
00171 
00172 // Local variables section.
00173 // This is only used by emacs!
00174 // Local Variables:
00175 // ff-search-directories: ("../../" "../../../src/xdkwrl/nodes")
00176 // End:

Generated on 5 Jan 2007 with doxygen version 1.5.1. Valid HTML 4.0! Valid CSS!