3Depict
|
Visualisation controller. More...
#include <viscontrol.h>
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 |
RefreshController & | getRefreshControl () 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... | |
PlotWrapper * | getPlotWrapper () |
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 |
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 .
|
inline |
References ASSERT, Scene::setVisControl(), and STATE_MODIFIED_ANCILLARY.
|
inline |
References TreeState::applyBindingsToTree(), and AnalysisState::treeState.
|
inline |
References Scene::clearAll().
|
inline |
Erase the filters that will persist in the view.
|
inline |
size_t VisController::getPlotID | ( | size_t | position | ) | const |
References ASSERT.
|
inline |
get the plot wrapper : TODO: Deprecate me
RefreshController& VisController::getRefreshControl | ( | ) | const |
|
inline |
References TreeState::getSelectionDevices(), and AnalysisState::treeState.
Referenced by Scene::applyDevice(), and Scene::drawOverlays().
void VisController::setActiveCam | ( | unsigned int | cam | ) |
void VisController::setCamProperty | ( | size_t | offset, |
unsigned int | key, | ||
const std::string & | value | ||
) |
|
inline |
Set the text console.
|
inline |
|
inline |
Set the listbox for plot selection.
|
inline |
Set the backend grid control for raw data.
void VisController::setWxTreeFilterViewPersistence | ( | size_t | filterId | ) |
Ask that next time we build the tree, this filter is kept visible/selected.
bool VisController::stateIsModified | ( | unsigned int | minLevel = STATE_MODIFIED_ANCILLARY | ) | const |
void VisController::transferSceneCameraToState | ( | ) |
void VisController::updateCameraComboBox | ( | wxComboBox * | comboCamera | ) | const |
References ASSERT.
void VisController::updateCameraPropGrid | ( | wxPropertyGrid * | g, |
size_t | cameraId | ||
) | const |
Update a wxPropertyGrid with the properties for a given filter.
References ASSERT, and updateCameraPropertyGrid().
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().
void VisController::updateRawGrid | ( | ) | const |
References ASSERT, and stream_cast().
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.
void VisController::updateScene | ( | std::list< std::vector< const FilterStreamData *> > & | sceneData, |
bool | releaseData | ||
) |
void VisController::updateStashComboBox | ( | wxComboBox * | comboStash | ) | const |
References ASSERT.
void VisController::updateWxTreeCtrl | ( | wxTreeCtrl * | t, |
const Filter * | f = 0 |
||
) |
Write out the filters into a wxtreecontrol.
References upWxTreeCtrl().
Scene VisController::scene |
Referenced by MainWindowFrame::MainWindowFrame().
AnalysisState VisController::state |