PlaneDirectionViewer Class Reference

#include <PlaneDirectionViewer.h>

Collaboration diagram for PlaneDirectionViewer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PlaneDirectionViewer (wxWindow *parent, int radio, double colour[3], int opacity)
 ~PlaneDirectionViewer ()
void SetRenderer (vtkRenderer *render)
void SetVectors (std::vector< double > lstPointsx, std::vector< double > lstPointsy, std::vector< double > lstPointsz)
void UpdateDirections () throw (std::exception)
void addRemoveActor (int index, bool addremove)
void changeColor (int index, double r, double g, double b)
void WriteInformation (std::string filename, double *spc=NULL)
void SetArrowSize (int arrowsize)

Static Public Member Functions

static
PlaneDirectionViewer
getInstance (wxWindow *parent, int radio, double colour[3], int opacity)
static
PlaneDirectionViewer
getInstance ()

Private Attributes

PlaneDirectionManagermanager
std::vector
< PlaneDirectionViewerPanel * > 
viewdata

Static Private Attributes

static
PlaneDirectionViewer
instance = NULL


Detailed Description

Definition at line 16 of file PlaneDirectionViewer.h.


Constructor & Destructor Documentation

PlaneDirectionViewer::PlaneDirectionViewer ( wxWindow *  parent,
int  radio,
double  colour[3],
int  opacity 
)

Definition at line 11 of file PlaneDirectionViewer.cxx.

References manager.

Referenced by getInstance().

00012 :wxPanel(parent)
00013 {
00014         manager = new PlaneDirectionManager(radio, colour, opacity);    
00015         wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
00016         this->SetSizer(sizer);
00017         this->SetAutoLayout(true);
00018         
00019 }

Here is the caller graph for this function:

PlaneDirectionViewer::~PlaneDirectionViewer (  ) 

Definition at line 33 of file PlaneDirectionViewer.cxx.

References manager.

00033                                            {
00034         delete manager;
00035 }


Member Function Documentation

void PlaneDirectionViewer::SetRenderer ( vtkRenderer *  render  ) 

Definition at line 37 of file PlaneDirectionViewer.cxx.

References manager, and PlaneDirectionManager::SetRenderer().

00037                                                          {
00038         manager->SetRenderer(render);
00039 }

Here is the call graph for this function:

void PlaneDirectionViewer::SetVectors ( std::vector< double >  lstPointsx,
std::vector< double >  lstPointsy,
std::vector< double >  lstPointsz 
)

Definition at line 40 of file PlaneDirectionViewer.cxx.

References manager, and PlaneDirectionManager::SetVectors().

00040                                                                                                                               {
00041         manager->SetVectors(lstPointsx,lstPointsy,lstPointsz);
00042 }

Here is the call graph for this function:

void PlaneDirectionViewer::UpdateDirections (  )  throw (std::exception)

Definition at line 44 of file PlaneDirectionViewer.cxx.

References PlaneDirectionManager::GetPlanesData(), manager, PlaneDirectionManager::UpdateDirections(), and viewdata.

00044                                                                 {
00045         manager->UpdateDirections();
00046         std::vector<PlaneDirectionManagerData*> vectdata = manager->GetPlanesData();
00047         for(int i = 0; i < viewdata.size();i++){
00048                 this->GetSizer()->Remove(i);
00049                 viewdata[i]->Destroy();
00050         }
00051         viewdata.clear();       
00052         for(int i = 0; i < vectdata.size(); i++){
00053                 PlaneDirectionViewerPanel* planedirview = new PlaneDirectionViewerPanel(this, vectdata[i],i);
00054                 viewdata.push_back(planedirview);
00055                 this->GetSizer()->Add(planedirview,1);
00056         }
00057         this->Layout();
00058         
00059 }

Here is the call graph for this function:

PlaneDirectionViewer * PlaneDirectionViewer::getInstance ( wxWindow *  parent,
int  radio,
double  colour[3],
int  opacity 
) [static]

Definition at line 22 of file PlaneDirectionViewer.cxx.

References instance, and PlaneDirectionViewer().

00022                                                                                                                 {
00023         if(instance==NULL){
00024                 instance = new PlaneDirectionViewer(parent,radio,colour,opacity);
00025         }
00026         return instance;
00027 }

Here is the call graph for this function:

PlaneDirectionViewer * PlaneDirectionViewer::getInstance (  )  [static]

Definition at line 29 of file PlaneDirectionViewer.cxx.

References instance.

Referenced by PlaneDirectionViewerPanel::onCheckBoxChange(), and PlaneDirectionViewerPanel::onColorChange().

00029                                                        {
00030         return instance;
00031 }

Here is the caller graph for this function:

void PlaneDirectionViewer::addRemoveActor ( int  index,
bool  addremove 
)

Definition at line 61 of file PlaneDirectionViewer.cxx.

References PlaneDirectionManager::addRemoveActor(), and manager.

Referenced by PlaneDirectionViewerPanel::onCheckBoxChange().

00061                                                                   {
00062         manager->addRemoveActor(index, addremove);
00063 }

Here is the call graph for this function:

Here is the caller graph for this function:

void PlaneDirectionViewer::changeColor ( int  index,
double  r,
double  g,
double  b 
)

Definition at line 65 of file PlaneDirectionViewer.cxx.

References PlaneDirectionManager::changeColor(), and manager.

Referenced by PlaneDirectionViewerPanel::onColorChange().

00065                                                                           {
00066         manager->changeColor(index, r,g,b);
00067 }

Here is the call graph for this function:

Here is the caller graph for this function:

void PlaneDirectionViewer::WriteInformation ( std::string  filename,
double *  spc = NULL 
)

Definition at line 69 of file PlaneDirectionViewer.cxx.

References manager, and PlaneDirectionManager::WriteInformation().

00069                                                                            {
00070     manager->WriteInformation(filename,spc);
00071 }

Here is the call graph for this function:

void PlaneDirectionViewer::SetArrowSize ( int  arrowsize  ) 

Definition at line 73 of file PlaneDirectionViewer.cxx.

References manager, and PlaneDirectionManager::SetArrowSize().

00073                                                     {
00074         manager->SetArrowSize(arrowsize);
00075 
00076 }

Here is the call graph for this function:


Member Data Documentation

PlaneDirectionViewer * PlaneDirectionViewer::instance = NULL [static, private]

Definition at line 39 of file PlaneDirectionViewer.h.

Referenced by getInstance().

PlaneDirectionManager* PlaneDirectionViewer::manager [private]

Definition at line 40 of file PlaneDirectionViewer.h.

Referenced by addRemoveActor(), changeColor(), PlaneDirectionViewer(), SetArrowSize(), SetRenderer(), SetVectors(), UpdateDirections(), WriteInformation(), and ~PlaneDirectionViewer().

std::vector<PlaneDirectionViewerPanel*> PlaneDirectionViewer::viewdata [private]

Definition at line 41 of file PlaneDirectionViewer.h.

Referenced by UpdateDirections().


The documentation for this class was generated from the following files:
Generated on Wed Jul 29 16:36:06 2009 for creaMaracasVisu_lib by  doxygen 1.5.3