bbtk::vtkGConnectorView Class Reference

#include <vtkGConnectorView.h>

Inheritance diagram for bbtk::vtkGConnectorView:

Inheritance graph
[legend]
Collaboration diagram for bbtk::vtkGConnectorView:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 vtkGConnectorView ()
 ~vtkGConnectorView ()
void setManualContourView (manualViewContour *viewContour)
manualViewContour * getManualContourView ()
void updateStartEndPoints ()
void setModel (GObjectModel *model)
void setBaseView (wxVtkBaseView *baseView)
void initVtkObjects ()
void setStartDragging (bool param)
void setState (int state)
int getState ()
void setRefreshWaiting ()
virtual bool isPointInside (int X, int Y)
virtual void moveObject (int X, int Y)
virtual void removeFromScene ()
virtual void update (int idController, int command)

Protected Member Functions

virtual void createVtkObjects ()
virtual void addVtkActors ()
virtual void removeVtkActors ()
virtual void updateColors ()

Protected Attributes

wxVtkBaseView * _baseView
GObjectModel_model
vtkActor * _borderObjectActor
vtkActor * _fillObjectActor
vtkPolyDataMapper * _fillPolyMapper
vtkPolyDataMapper * _borderPolyMapper
vtkPoints * _pts
int _state

Private Attributes

manualViewContour * manViewContour


Detailed Description

Definition at line 61 of file vtkGConnectorView.h.


Constructor & Destructor Documentation

bbtk::vtkGConnectorView::vtkGConnectorView (  ) 

Definition at line 45 of file vtkGConnectorView.cxx.

00046         {               
00047         }

bbtk::vtkGConnectorView::~vtkGConnectorView (  ) 

Definition at line 51 of file vtkGConnectorView.cxx.

00052         {
00053         }


Member Function Documentation

void bbtk::vtkGObjectView::addVtkActors (  )  [protected, virtual, inherited]

Reimplemented in bbtk::vtkGBlackBoxView, bbtk::vtkGBoxView, and bbtk::vtkGComplexBoxPortView.

Definition at line 103 of file vtkGObjectView.cxx.

References bbtk::vtkGObjectView::_baseView, and bbtk::vtkGObjectView::_fillObjectActor.

Referenced by bbtk::vtkGObjectView::initVtkObjects().

00104         {               
00105                 _baseView->GetRenderer()->AddActor(_fillObjectActor);
00106                 _baseView->GetRenderer()->Render();
00107         }

Here is the caller graph for this function:

void bbtk::vtkGObjectView::createVtkObjects (  )  [protected, virtual, inherited]

Reimplemented in bbtk::vtkGBlackBoxView, bbtk::vtkGBoxView, bbtk::vtkGComplexBoxPortView, and bbtk::vtkGPortView.

Definition at line 89 of file vtkGObjectView.cxx.

Referenced by bbtk::vtkGObjectView::initVtkObjects().

00090         {
00091                 //virtual
00092         }

Here is the caller graph for this function:

manualViewContour * bbtk::vtkGConnectorView::getManualContourView (  ) 

Definition at line 64 of file vtkGConnectorView.cxx.

References manViewContour.

00065         {
00066                 return manViewContour;
00067         }

int bbtk::vtkGObjectView::getState (  )  [inherited]

void bbtk::vtkGObjectView::initVtkObjects (  )  [inherited]

bool bbtk::vtkGObjectView::isPointInside ( int  X,
int  Y 
) [virtual, inherited]

Definition at line 119 of file vtkGObjectView.cxx.

References bbtk::vtkGObjectView::_baseView, bbtk::vtkGObjectView::_model, and bbtk::GObjectModel::isPointInside().

Referenced by bbtk::wxVtkSceneManager::GetGBlackBoxControlerPointedByMouse(), bbtk::GBlackBoxController::OnLeftButtonDown(), bbtk::GBoxController::OnLeftButtonUp(), bbtk::GBlackBoxController::OnMiddleButtonDown(), bbtk::GObjectController::OnMouseMove(), bbtk::GBoxController::OnMouseMove(), and bbtk::GBlackBoxController::OnMouseMove().

00120         {
00121                 // RaC In the actual version, always z=900
00122                 double xx=X,yy=Y,zz=900;
00123                 _baseView->TransCoordScreenToWorld(xx,yy,zz);
00124                 return _model->isPointInside(xx,yy,zz);
00125         }

Here is the call graph for this function:

Here is the caller graph for this function:

void bbtk::vtkGObjectView::moveObject ( int  X,
int  Y 
) [virtual, inherited]

Definition at line 129 of file vtkGObjectView.cxx.

References bbtk::vtkGObjectView::_baseView, bbtk::vtkGObjectView::_isStartDragging, bbtk::vtkGObjectView::_model, bbtk::vtkGObjectView::dragDifX, bbtk::vtkGObjectView::dragDifY, bbtk::GObjectModel::getInicPoint(), and bbtk::GObjectModel::move().

Referenced by bbtk::GObjectController::moveObject(), and bbtk::wxVtkSceneManager::OnMouseMove().

00130         {               
00131                 // RaC In the actual version, always z=900
00132                 double xx=X,yy=Y,zz=900;
00133                 _baseView->TransCoordScreenToWorld(xx,yy,zz);
00134 
00135                 if(_isStartDragging)
00136                 {
00137                         _isStartDragging=false;
00138                         
00139                         double xInic,yInic,zInic;
00140                         _model->getInicPoint(xInic,yInic,zInic);                        
00141                         dragDifX=xx-xInic;
00142                         dragDifY=yy-yInic;      
00143                 }
00144                 _model->move(xx-dragDifX,yy-dragDifY,zz);
00145 
00146         }

Here is the call graph for this function:

Here is the caller graph for this function:

void bbtk::vtkGObjectView::removeFromScene (  )  [virtual, inherited]

Definition at line 180 of file vtkGObjectView.cxx.

References bbtk::vtkGObjectView::removeVtkActors(), and bbtk::vtkGObjectView::setRefreshWaiting().

Referenced by bbtk::GObjectController::removeFromScene().

00181         {
00182                 removeVtkActors();
00183                 setRefreshWaiting();
00184         }

Here is the call graph for this function:

Here is the caller graph for this function:

void bbtk::vtkGObjectView::removeVtkActors (  )  [protected, virtual, inherited]

Reimplemented in bbtk::vtkGBlackBoxView, bbtk::vtkGBoxView, and bbtk::vtkGComplexBoxPortView.

Definition at line 111 of file vtkGObjectView.cxx.

References bbtk::vtkGObjectView::_baseView, and bbtk::vtkGObjectView::_fillObjectActor.

Referenced by bbtk::vtkGObjectView::removeFromScene().

00112         {
00113                 _baseView->GetRenderer()->RemoveActor(_fillObjectActor);
00114                 _baseView->GetRenderer()->Render();
00115         }

Here is the caller graph for this function:

void bbtk::vtkGObjectView::setBaseView ( wxVtkBaseView *  baseView  )  [inherited]

void bbtk::vtkGConnectorView::setManualContourView ( manualViewContour *  viewContour  ) 

Definition at line 57 of file vtkGConnectorView.cxx.

References manViewContour.

Referenced by bbtk::wxVtkSceneManager::createGConnector().

00058         {
00059                 manViewContour = viewContour;
00060         }

Here is the caller graph for this function:

void bbtk::vtkGObjectView::setModel ( GObjectModel model  )  [inherited]

void bbtk::vtkGObjectView::setRefreshWaiting (  )  [inherited]

Definition at line 173 of file vtkGObjectView.cxx.

References bbtk::vtkGObjectView::_baseView.

Referenced by bbtk::vtkGObjectView::removeFromScene(), bbtk::vtkGPortView::update(), bbtk::vtkGComplexBoxPortView::update(), bbtk::vtkGBoxView::update(), and bbtk::vtkGBlackBoxView::update().

00174         {
00175                 ((vtkInteractorStyleBaseView*)_baseView->GetInteractorStyleBaseView())->SetRefresh_waiting();
00176         }

Here is the caller graph for this function:

void bbtk::vtkGObjectView::setStartDragging ( bool  param  )  [inherited]

Definition at line 150 of file vtkGObjectView.cxx.

References bbtk::vtkGObjectView::_isStartDragging, and bbtk::vtkGObjectView::dragDifX.

Referenced by bbtk::wxVtkSceneManager::OnMouseMove().

00151         {
00152                 _isStartDragging=param;
00153                 dragDifX=0;
00154                 dragDifX=0;
00155         }

Here is the caller graph for this function:

void bbtk::vtkGObjectView::setState ( int  state  )  [inherited]

void bbtk::vtkGObjectView::update ( int  idController,
int  command 
) [virtual, inherited]

Reimplemented from bbtk::Observer.

Reimplemented in bbtk::vtkGBlackBoxView, bbtk::vtkGBoxView, bbtk::vtkGComplexBoxPortView, and bbtk::vtkGPortView.

Definition at line 60 of file vtkGObjectView.cxx.

00061         {
00062                 //virtual
00063         }

void bbtk::vtkGObjectView::updateColors (  )  [protected, virtual, inherited]

Reimplemented in bbtk::vtkGBlackBoxView, bbtk::vtkGBoxView, bbtk::vtkGComplexBoxPortView, and bbtk::vtkGPortView.

Definition at line 96 of file vtkGObjectView.cxx.

00097         {
00098                 //virtual
00099         }

void bbtk::vtkGConnectorView::updateStartEndPoints (  ) 

Definition at line 71 of file vtkGConnectorView.cxx.

References bbtk::vtkGObjectView::_model, manViewContour, and bbtk::GConnectorModel::updateStartEndPoints().

Referenced by bbtk::wxVtkSceneManager::addObjects(), bbtk::wxVtkSceneManager::configGConnetion(), bbtk::wxVtkSceneManager::DuplicateObjects(), and bbtk::wxVtkSceneManager::OnMouseMove().

00072         {               
00073                 GConnectorModel* mod=(GConnectorModel*)_model;
00074                 mod->updateStartEndPoints();
00075                 manViewContour->RefreshContour();
00076         }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

wxVtkBaseView* bbtk::vtkGObjectView::_baseView [protected, inherited]

vtkActor* bbtk::vtkGObjectView::_borderObjectActor [protected, inherited]

vtkPolyDataMapper* bbtk::vtkGObjectView::_borderPolyMapper [protected, inherited]

vtkActor* bbtk::vtkGObjectView::_fillObjectActor [protected, inherited]

vtkPolyDataMapper* bbtk::vtkGObjectView::_fillPolyMapper [protected, inherited]

GObjectModel* bbtk::vtkGObjectView::_model [protected, inherited]

vtkPoints* bbtk::vtkGObjectView::_pts [protected, inherited]

int bbtk::vtkGObjectView::_state [protected, inherited]

manualViewContour* bbtk::vtkGConnectorView::manViewContour [private]


The documentation for this class was generated from the following files:

Generated on Thu May 31 15:13:49 2012 for bbtkGEditor by  doxygen 1.5.7.1