3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
VisController Class Reference

Visualisation controller. More...

#include <viscontrol.h>

Collaboration diagram for VisController:
Collaboration graph
[legend]

Public Member Functions

 VisController ()
 
void setActiveCam (unsigned int cam)
 
bool stateIsModified (unsigned int minLevel=STATE_MODIFIED_ANCILLARY) const
 
void setIonDisplayLimit (size_t newLimit)
 
size_t getIonDisplayLimit () const
 
RefreshControllergetRefreshControl () const
 
void clearScene ()
 
std::vector< SelectionDevice * > & getSelectionDevices ()
 
void applyBindingsToTree ()
 
void transferSceneCameraToState ()
 
void setCamProperty (size_t offset, unsigned int key, const std::string &value)
 
void setWxTreeFilterViewPersistence (size_t filterId)
 Ask that next time we build the tree, this filter is kept visible/selected. More...
 
void clearTreeFilterViewPersistence ()
 Erase the filters that will persist in the view. More...
 
void updateWxTreeCtrl (wxTreeCtrl *t, const Filter *f=0)
 Write out the filters into a wxtreecontrol. More...
 
void updateFilterPropGrid (wxPropertyGrid *g, size_t filterId, const std::string &stateString="") const
 Update a wxPropertyGrid with the properties for a given filter. More...
 
void updateCameraPropGrid (wxPropertyGrid *g, size_t cameraId) const
 Update a wxPropertyGrid with the properties for a given filter. More...
 
void updateCameraComboBox (wxComboBox *comboCamera) const
 
void updateRawGrid () const
 
void updateStashComboBox (wxComboBox *comboStash) const
 
void updateScene (RefreshController *r)
 
void updateScene (std::list< std::vector< const FilterStreamData *> > &sceneData, bool releaseData)
 
void setRawGrid (wxGrid *theRawGrid)
 Set the backend grid control for raw data. More...
 
PlotWrappergetPlotWrapper ()
 get the plot wrapper : TODO: Deprecate me More...
 
size_t getPlotID (size_t position) const
 
void setPlotList (wxListBox *box)
 Set the listbox for plot selection. More...
 
void setConsole (wxTextCtrl *t)
 Set the text console. More...
 

Public Attributes

AnalysisState state
 
Scene scene
 

Detailed Description

Visualisation controller.

Keeps track of what visualisation controls the user has available such as cameras, filters and data groups. This is essentially responsible for interfacing between program data structures and the user interface.

Only one of these should be instantiated at any time .

Constructor & Destructor Documentation

◆ VisController()

VisController::VisController ( )
inline

Member Function Documentation

◆ applyBindingsToTree()

void VisController::applyBindingsToTree ( )
inline

◆ clearScene()

void VisController::clearScene ( )
inline

References Scene::clearAll().

◆ clearTreeFilterViewPersistence()

void VisController::clearTreeFilterViewPersistence ( )
inline

Erase the filters that will persist in the view.

◆ getIonDisplayLimit()

size_t VisController::getIonDisplayLimit ( ) const
inline

Referenced by MainWindowFrame::MainWindowFrame().

Here is the caller graph for this function:

◆ getPlotID()

size_t VisController::getPlotID ( size_t  position) const

References ASSERT.

◆ getPlotWrapper()

PlotWrapper* VisController::getPlotWrapper ( )
inline

get the plot wrapper : TODO: Deprecate me

◆ getRefreshControl()

RefreshController& VisController::getRefreshControl ( ) const

◆ getSelectionDevices()

std::vector<SelectionDevice *>& VisController::getSelectionDevices ( )
inline

References TreeState::getSelectionDevices(), and AnalysisState::treeState.

Referenced by Scene::applyDevice(), and Scene::drawOverlays().

Here is the caller graph for this function:

◆ setActiveCam()

void VisController::setActiveCam ( unsigned int  cam)

◆ setCamProperty()

void VisController::setCamProperty ( size_t  offset,
unsigned int  key,
const std::string &  value 
)

◆ setConsole()

void VisController::setConsole ( wxTextCtrl *  t)
inline

Set the text console.

◆ setIonDisplayLimit()

void VisController::setIonDisplayLimit ( size_t  newLimit)
inline

◆ setPlotList()

void VisController::setPlotList ( wxListBox *  box)
inline

Set the listbox for plot selection.

◆ setRawGrid()

void VisController::setRawGrid ( wxGrid *  theRawGrid)
inline

Set the backend grid control for raw data.

◆ setWxTreeFilterViewPersistence()

void VisController::setWxTreeFilterViewPersistence ( size_t  filterId)

Ask that next time we build the tree, this filter is kept visible/selected.

◆ stateIsModified()

bool VisController::stateIsModified ( unsigned int  minLevel = STATE_MODIFIED_ANCILLARY) const

◆ transferSceneCameraToState()

void VisController::transferSceneCameraToState ( )

◆ updateCameraComboBox()

void VisController::updateCameraComboBox ( wxComboBox *  comboCamera) const

References ASSERT.

◆ updateCameraPropGrid()

void VisController::updateCameraPropGrid ( wxPropertyGrid *  g,
size_t  cameraId 
) const

Update a wxPropertyGrid with the properties for a given filter.

References ASSERT, and updateCameraPropertyGrid().

◆ updateFilterPropGrid()

void VisController::updateFilterPropGrid ( wxPropertyGrid *  g,
size_t  filterId,
const std::string &  stateString = "" 
) const

Update a wxPropertyGrid with the properties for a given filter.

References ASSERT, and updateFilterPropertyGrid().

◆ updateRawGrid()

void VisController::updateRawGrid ( ) const

References ASSERT, and stream_cast().

◆ updateScene() [1/2]

void VisController::updateScene ( RefreshController r)

References IonStreamData::a, VoxelStreamData::a, DrawDispList::addDrawable(), RegionGroup::addRegion(), ASSERT, IonStreamData::b, VoxelStreamData::b, PlotStreamData::b, FilterStreamData::cached, Voxels< T >::clone(), IonStreamData::cloneSampled(), IonStreamData::data, VoxelStreamData::data, PlotStreamData::dataLabel, Plot2DStreamData::dataLabel, DRAW_TYPE_MANYPOINT, DrawStreamData::drawables, DrawDispList::endList(), PlotStreamData::errDat, IonStreamData::g, VoxelStreamData::g, PlotStreamData::g, PlotStreamData::getNumBasicObjects(), Plot2DStreamData::getNumBasicObjects(), RefreshController::getRefreshData(), PlotStreamData::index, Plot2DStreamData::index, IonStreamData::ionSize, VoxelStreamData::isoLevel, BoundCube::isValid(), PlotStreamData::logarithmic, MAX_NUM_DRAWABLE_POINTS, numElements(), FilterStreamData::parent, PlotBase::parentObject, PlotBase::parentPlotIndex, PLOT_2D_DENS, PLOT_2D_SCATTER, PLOT_MODE_1D, plotID(), PlotStreamData::plotMode, PlotStreamData::plotStyle, Plot2DStreamData::plotStyle, IonStreamData::r, VoxelStreamData::r, PlotStreamData::r, PlotStreamData::regionB, PlotStreamData::regionG, PlotBase::regionGroup, PlotStreamData::regionID, PlotStreamData::regionParent, PlotStreamData::regionR, PlotStreamData::regions, PlotStreamData::regionTitle, VoxelStreamData::representationType, DrawManyPoints::resize(), Plot2DStreamData::scatterData, Plot2DStreamData::scatterIntensity, Plot2DScatter::scatterIntensityLog, Plot2DStreamData::scatterIntensityLog, DrawField3D::setAlpha(), DrawField3D::setBoxColours(), PlotBase::setColour(), DrawManyPoints::setColour(), DrawIsoSurface::setColour(), DrawField3D::setColourMapID(), DrawField3D::setColourMinMax(), Plot1D::setData(), Plot2DFunc::setData(), Plot2DScatter::setData(), Plot1D::setErrMode(), DrawField3D::setField(), Plot1D::setLogarithmic(), DrawManyPoints::setPoint(), DrawField3D::setPointSize(), DrawIsoSurface::setScalarThresh(), DrawManyPoints::setSize(), PlotBase::setStrings(), PlotBase::setTraceStyle(), DrawManyPoints::shuffle(), VoxelStreamData::splatSize, DrawDispList::startList(), STREAM_TYPE_DRAW, STREAM_TYPE_IONS, STREAM_TYPE_PLOT, STREAM_TYPE_PLOT2D, STREAM_TYPE_RANGE, STREAM_TYPE_VOXEL, Voxels< T >::swap(), DrawIsoSurface::swapVoxels(), PlotBase::titleAsRawDataLabel, PlotStreamData::useDataLabelAsYDescriptor, VOXEL_REPRESENT_ISOSURF, VOXEL_REPRESENT_POINTCLOUD, DrawableObj::wantsLight, PlotStreamData::xLabel, Plot2DStreamData::xLabel, Plot2DStreamData::xMax, Plot2DStreamData::xMin, PlotStreamData::xyData, Plot2DStreamData::xyData, PlotStreamData::yLabel, Plot2DStreamData::yLabel, Plot2DStreamData::yMax, and Plot2DStreamData::yMin.

◆ updateScene() [2/2]

void VisController::updateScene ( std::list< std::vector< const FilterStreamData *> > &  sceneData,
bool  releaseData 
)

◆ updateStashComboBox()

void VisController::updateStashComboBox ( wxComboBox *  comboStash) const

References ASSERT.

◆ updateWxTreeCtrl()

void VisController::updateWxTreeCtrl ( wxTreeCtrl *  t,
const Filter f = 0 
)

Write out the filters into a wxtreecontrol.

References upWxTreeCtrl().

Member Data Documentation

◆ scene

Scene VisController::scene

◆ state

AnalysisState VisController::state

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