CMS 3D CMS Logo

IgPlaneDirection.cc

Go to the documentation of this file.
00001 //<<<<<< INCLUDES                                                       >>>>>>
00002 
00003 #include "Iguana/GLBrowsers/interface/IgPlaneDirection.h"
00004 
00005 //<<<<<< PRIVATE DEFINES                                                >>>>>>
00006 //<<<<<< PRIVATE CONSTANTS                                              >>>>>>
00007 //<<<<<< PRIVATE TYPES                                                  >>>>>>
00008 //<<<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>>>
00009 //<<<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>>>
00010 //<<<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>>>
00011 //<<<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>>>
00012 //<<<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>>>
00013 //<<<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>>>
00014 
00015 
00018 IgPlaneDirection::IgPlaneDirection () : m_vector (SbVec3f (1.0, 0.0, 0.0))
00019 {}
00020 
00021 IgPlaneDirection::IgPlaneDirection (const SbVec3f &vec) : m_vector (vec)
00022 {}
00023 
00024 IgPlaneDirection::IgPlaneDirection (const float x, const float y, const float z)
00025 {
00026         IgPlaneDirection (SbVec3f (x,y,z));
00027 }
00028 
00029 bool
00030 IgPlaneDirection::isDirty ()
00031 {
00032         // is never dirty because we are updating the values immediately
00033         return false;
00034 }
00035 
00036 void
00037 IgPlaneDirection::setValue (float x, float y, float z)
00038 {
00039         setValue (SbVec3f (x,y,z));
00040 }
00041 
00042 void
00043 IgPlaneDirection::setValue (const SbVec3f &vec)
00044 {
00045         m_vector = vec;
00046         emit dirty ();
00047 }
00048 
00049 SbVec3f
00050 IgPlaneDirection::value ()
00051 {
00052         return SbVec3f (m_vector[0], m_vector[1], m_vector[2]);
00053 }

Generated on Tue Jun 9 17:38:38 2009 for CMSSW by  doxygen 1.5.4