CMS 3D CMS Logo

IgPlaneDirection Class Reference

#include <Iguana/GLBrowsers/interface/IgPlaneDirection.h>

List of all members.

Signals

void dirty ()

Public Member Functions

 IgPlaneDirection (const float x, const float y, const float z)
 IgPlaneDirection (const SbVec3f &vec)
 IgPlaneDirection ()
 This class is basically a SbVec3f with the additional functionality of emitting a signal as soon as its values are changed.
bool isDirty ()
void setValue (const SbVec3f &vec)
void setValue (float x, float y, float z)
SbVec3f value ()

Private Attributes

SbVec3f m_vector


Detailed Description

Definition at line 17 of file IgPlaneDirection.h.


Constructor & Destructor Documentation

IgPlaneDirection::IgPlaneDirection (  ) 

This class is basically a SbVec3f with the additional functionality of emitting a signal as soon as its values are changed.

Definition at line 18 of file IgPlaneDirection.cc.

Referenced by IgPlaneDirection().

00018                                     : m_vector (SbVec3f (1.0, 0.0, 0.0))
00019 {}

IgPlaneDirection::IgPlaneDirection ( const SbVec3f &  vec  ) 

Definition at line 21 of file IgPlaneDirection.cc.

00021                                                       : m_vector (vec)
00022 {}

IgPlaneDirection::IgPlaneDirection ( const float  x,
const float  y,
const float  z 
)

Definition at line 24 of file IgPlaneDirection.cc.

References IgPlaneDirection().

00025 {
00026         IgPlaneDirection (SbVec3f (x,y,z));
00027 }


Member Function Documentation

void IgPlaneDirection::dirty (  )  [signal]

Referenced by setValue().

bool IgPlaneDirection::isDirty ( void   ) 

Definition at line 30 of file IgPlaneDirection.cc.

00031 {
00032         // is never dirty because we are updating the values immediately
00033         return false;
00034 }

void IgPlaneDirection::setValue ( const SbVec3f &  vec  ) 

Definition at line 43 of file IgPlaneDirection.cc.

References dirty(), and m_vector.

00044 {
00045         m_vector = vec;
00046         emit dirty ();
00047 }

void IgPlaneDirection::setValue ( float  x,
float  y,
float  z 
)

Definition at line 37 of file IgPlaneDirection.cc.

Referenced by Ig3DPlaneControl::setDirection().

00038 {
00039         setValue (SbVec3f (x,y,z));
00040 }

SbVec3f IgPlaneDirection::value ( void   ) 

Definition at line 50 of file IgPlaneDirection.cc.

References m_vector.

Referenced by Ig3DPlaneControl::direction().

00051 {
00052         return SbVec3f (m_vector[0], m_vector[1], m_vector[2]);
00053 }


Member Data Documentation

SbVec3f IgPlaneDirection::m_vector [private]

Definition at line 34 of file IgPlaneDirection.h.

Referenced by setValue(), and value().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:20 2009 for CMSSW by  doxygen 1.5.4