// // Vrml 97 library // Copyright (C) 1998 Chris Morley // // %W% %G% // VrmlNodeSphereSensor.h #ifndef _VRMLNODESPHERESENSOR_ #define _VRMLNODESPHERESENSOR_ #include "VrmlNodeChild.h" #include "VrmlSFBool.h" #include "VrmlSFRotation.h" #include "VrmlSFVec3f.h" class VrmlScene; class VrmlNodeSphereSensor : public VrmlNodeChild { public: // Define the fields of SphereSensor nodes static VrmlNodeType *defineType(VrmlNodeType *t = 0); virtual VrmlNodeType *nodeType() const; VrmlNodeSphereSensor( VrmlScene *scene = 0); virtual ~VrmlNodeSphereSensor(); virtual VrmlNode *cloneMe() const; virtual ostream& printFields(ostream& os, int indent); virtual void setField(const char *fieldName, const VrmlField &fieldValue); bool isEnabled() { return d_enabled.get(); } private: // Fields VrmlSFBool d_autoOffset; VrmlSFBool d_enabled; VrmlSFRotation d_offset; VrmlSFBool d_isActive; VrmlSFRotation d_rotation; VrmlSFVec3f d_trackPoint; }; #endif // _VRMLNODESPHERESENSOR_