Loading...
Searching...
No Matches
standardDatasets.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DATATYPE_STANDARDDATASETS_H
#define BALL_VIEW_DATATYPE_STANDARDDATASETS_H
#ifndef BALL_VIEW_DATATYPE_DATASET_H
# include <BALL/VIEW/DATATYPE/dataset.h>
#endif
#ifndef BALL_DATATYPE_REGULARDATA1D_H
# include <BALL/DATATYPE/regularData1D.h>
#endif
#ifndef BALL_DATATYPE_REGULARDATA2D_H
# include <BALL/DATATYPE/regularData2D.h>
#endif
#ifndef BALL_DATATYPE_REGULARDATA3D_H
# include <BALL/DATATYPE/regularData3D.h>
#endif
#ifndef BALL_VIEW_DATATYPE_RAYTRACEABLEGRID_H
# include <BALL/VIEW/DATATYPE/raytraceableGrid.h>
#endif
#ifndef BALL_VIEW_DATATYPE_RAYTRACEABLECONTOURSURFACEDIALOG_H
# include <BALL/VIEW/DIALOGS/raytraceableContourSurfaceDialog.h>
#endif
#ifndef BALL_MATHS_VECTOR3_H
# include <BALL/MATHS/vector3.h>
#endif
#include <boost/shared_ptr.hpp>
namespace BALL
{
class TrajectoryFile;
class SnapShotManager;
class DockResult;
namespace VIEW
{
class ContourSurfaceDialog;
class SnapshotVisualisationDialog;
class FieldLinesDialog;
class GridVisualizationDialog;
class ColorRGBA;
BALL_CREATE_DATASET(RegularData3D)
class BALL_VIEW_EXPORT RegularData3DController
: public DatasetController
{
Q_OBJECT
public:
BALL_EMBEDDABLE(RegularData3DController,DatasetController)
RegularData3DController();
RegularData3DController(RegularData3DController& dc);
virtual ~RegularData3DController();
virtual bool write();
virtual bool write(Dataset* set, String filetype, String filename);
virtual Dataset* open(String filetype, String filename);
virtual bool createMenuEntries();
virtual QMenu* buildContextMenu(QTreeWidgetItem* item);
bool computeIsoContourSurface(Dataset& data, const ColorRGBA& color, float value);
Size getNextPowerOfTwo_(Size in) const;
bool isGridSizePowerOfTwo(const RegularData3D& grid) const;
RegularData3D* resizeGrid(const RegularData3D& grid);
RegularData3D* createHistogramGrid(const RegularData3D& grid);
RegularData3D* getData(Dataset* set);
static String type;
public Q_SLOTS:
bool createVectorGrid();
bool createRaytraceableGrid();
void computeIsoContourSurface();
void resizeGrid();
void createHistogramGrid();
void visualizeGrid();
void createSphere();
protected:
void deleteDataset_(Dataset* set);
ContourSurfaceDialog* dialog_;
GridVisualizationDialog* grid_dialog_;
};
BALL_CREATE_DATASET(SnapShotManager)
class BALL_VIEW_EXPORT TrajectoryController
: public DatasetController
{
Q_OBJECT
public:
BALL_EMBEDDABLE(TrajectoryController,DatasetController)
TrajectoryController();
TrajectoryController(TrajectoryController& dc);
virtual ~TrajectoryController();
virtual bool write(Dataset* set, String filetype, String filename);
virtual Dataset* open(String filetype, String filename);
virtual bool createMenuEntries();
virtual QMenu* buildContextMenu(QTreeWidgetItem* item);
SnapShotManager* getData(Dataset* set);
static String type;
public Q_SLOTS:
bool visualizeTrajectory();
bool bufferTrajectory();
protected:
void deleteDataset_(Dataset* set);
HashMap<SnapShotManager*, boost::shared_ptr<SnapshotVisualisationDialog> > dialogs_per_ssm_;
};
BALL_CREATE_DATASET(DockResult)
class BALL_VIEW_EXPORT DockResultController
: public DatasetController
{
Q_OBJECT
public:
BALL_EMBEDDABLE(DockResultController,DatasetController)
DockResultController();
DockResultController(DockResultController& dc);
virtual ~DockResultController();
virtual bool write(Dataset* set, String filetype, String filename);
virtual Dataset* open(String filetype, String filename);
virtual bool createMenuEntries();
virtual QMenu* buildContextMenu(QTreeWidgetItem* item);
DockResult* getData(Dataset* set);
static String type;
public Q_SLOTS:
void showDockResult();
bool saveDockTrajectory();
protected:
void deleteDataset_(Dataset* set);
};
typedef TRegularData3D<Vector3> VectorGrid;
BALL_CREATE_DATASET(VectorGrid)
class BALL_VIEW_EXPORT VectorGridController
: public DatasetController
{
Q_OBJECT
public:
BALL_EMBEDDABLE(VectorGridController,DatasetController)
VectorGridController();
VectorGridController(VectorGridController& dc);
virtual ~VectorGridController();
virtual bool write(Dataset* set, String filetype, String filename);
virtual Dataset* open(String filetype, String filename);
virtual bool createMenuEntries();
virtual QMenu* buildContextMenu(QTreeWidgetItem* item);
VectorGrid* getData(Dataset* set);
static String type;
public Q_SLOTS:
bool visualizeFieldLines();
protected:
void deleteDataset_(Dataset* set);
FieldLinesDialog* dialog_;
};
BALL_CREATE_DATASET(RaytraceableGrid)
class BALL_VIEW_EXPORT RaytraceableGridController
: public DatasetController
{
Q_OBJECT
public:
BALL_EMBEDDABLE(RaytraceableGridController, DatasetController)
RaytraceableGridController();
RaytraceableGridController(RaytraceableGridController& rc);
virtual ~RaytraceableGridController();
virtual bool createMenuEntries();
virtual bool write(Dataset* set, String filetype, String filename);
virtual QMenu* buildContextMenu(QTreeWidgetItem* item);
RaytraceableGrid* getData(Dataset* set);
static String type;
public Q_SLOTS:
void visualizeRaytraceableContourSurface();
protected:
void deleteDataset_(Dataset* set);
RaytraceableContourSurfaceDialog* rt_contour_surface_dialog_;
};
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_DATATYPE_STANDARDDATASETS_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::DockResult
Definition dockResult.h:30
BALL::HashMap
HashMap class based on the STL map (containing serveral convenience functions).
Definition hashMap.h:74
BALL::SnapShotManager
Definition snapShotManager.h:34
BALL::String
Definition string.h:57
BALL::TRegularData3D
Definition regularData3D.h:46
BALL::TrajectoryFile
Definition trajectoryFile.h:30
BALL::VIEW::ColorRGBA
Definition colorRGBA.h:32
BALL::VIEW::ContourSurfaceDialog
Definition contourSurfaceDialog.h:30
BALL::VIEW::DatasetController::DatasetController
DatasetController()
BALL::VIEW::Dataset
Definition dataset.h:61
BALL::VIEW::DockResultController::saveDockTrajectory
bool saveDockTrajectory()
BALL::VIEW::DockResultController::type
static String type
Definition standardDatasets.h:234
BALL::VIEW::DockResultController::createMenuEntries
virtual bool createMenuEntries()
BALL::VIEW::DockResultController::deleteDataset_
void deleteDataset_(Dataset *set)
BALL::VIEW::DockResultController::DockResultController
DockResultController()
BALL::VIEW::DockResultController::buildContextMenu
virtual QMenu * buildContextMenu(QTreeWidgetItem *item)
BALL::VIEW::DockResultController::write
virtual bool write(Dataset *set, String filetype, String filename)
BALL::VIEW::DockResultController::showDockResult
void showDockResult()
BALL::VIEW::DockResultController::getData
DockResult * getData(Dataset *set)
BALL::VIEW::DockResultController::open
virtual Dataset * open(String filetype, String filename)
BALL::VIEW::FieldLinesDialog
Definition fieldLinesDialog.h:29
BALL::VIEW::GridVisualizationDialog
Definition gridVisualizationDialog.h:36
BALL::VIEW::RaytraceableContourSurfaceDialog
Definition raytraceableContourSurfaceDialog.h:40
BALL::VIEW::RaytraceableGridController::createMenuEntries
virtual bool createMenuEntries()
BALL::VIEW::RaytraceableGridController::deleteDataset_
void deleteDataset_(Dataset *set)
BALL::VIEW::RaytraceableGridController::visualizeRaytraceableContourSurface
void visualizeRaytraceableContourSurface()
BALL::VIEW::RaytraceableGridController::RaytraceableGridController
RaytraceableGridController()
BALL::VIEW::RaytraceableGridController::type
static String type
Definition standardDatasets.h:340
BALL::VIEW::RaytraceableGridController::rt_contour_surface_dialog_
RaytraceableContourSurfaceDialog * rt_contour_surface_dialog_
Definition standardDatasets.h:351
BALL::VIEW::RaytraceableGridController::buildContextMenu
virtual QMenu * buildContextMenu(QTreeWidgetItem *item)
BALL::VIEW::RaytraceableGridController::getData
RaytraceableGrid * getData(Dataset *set)
BALL::VIEW::RaytraceableGridController::write
virtual bool write(Dataset *set, String filetype, String filename)
BALL::VIEW::RaytraceableGrid
Definition raytraceableGrid.h:17
BALL::VIEW::RegularData3DController::createVectorGrid
bool createVectorGrid()
BALL::VIEW::RegularData3DController::open
virtual Dataset * open(String filetype, String filename)
BALL::VIEW::RegularData3DController::grid_dialog_
GridVisualizationDialog * grid_dialog_
Definition standardDatasets.h:138
BALL::VIEW::RegularData3DController::type
static String type
Definition standardDatasets.h:108
BALL::VIEW::RegularData3DController::createMenuEntries
virtual bool createMenuEntries()
BALL::VIEW::RegularData3DController::getData
RegularData3D * getData(Dataset *set)
BALL::VIEW::RegularData3DController::buildContextMenu
virtual QMenu * buildContextMenu(QTreeWidgetItem *item)
BALL::VIEW::RegularData3DController::createHistogramGrid
RegularData3D * createHistogramGrid(const RegularData3D &grid)
BALL::VIEW::RegularData3DController::RegularData3DController
RegularData3DController()
BALL::VIEW::RegularData3DController::visualizeGrid
void visualizeGrid()
BALL::VIEW::RegularData3DController::createRaytraceableGrid
bool createRaytraceableGrid()
BALL::VIEW::RegularData3DController::dialog_
ContourSurfaceDialog * dialog_
Definition standardDatasets.h:137
BALL::VIEW::RegularData3DController::computeIsoContourSurface
bool computeIsoContourSurface(Dataset &data, const ColorRGBA &color, float value)
BALL::VIEW::RegularData3DController::write
virtual bool write()
Show a file dialog for writing the selected Dataset.
BALL::VIEW::RegularData3DController::isGridSizePowerOfTwo
bool isGridSizePowerOfTwo(const RegularData3D &grid) const
BALL::VIEW::RegularData3DController::deleteDataset_
void deleteDataset_(Dataset *set)
BALL::VIEW::RegularData3DController::createSphere
void createSphere()
BALL::VIEW::RegularData3DController::resizeGrid
RegularData3D * resizeGrid(const RegularData3D &grid)
BALL::VIEW::RegularData3DController::getNextPowerOfTwo_
Size getNextPowerOfTwo_(Size in) const
BALL::VIEW::SnapshotVisualisationDialog
Definition snapShotVisualisation.h:32
BALL::VIEW::TrajectoryController::dialogs_per_ssm_
HashMap< SnapShotManager *, boost::shared_ptr< SnapshotVisualisationDialog > > dialogs_per_ssm_
Definition standardDatasets.h:192
BALL::VIEW::TrajectoryController::type
static String type
Definition standardDatasets.h:179
BALL::VIEW::TrajectoryController::TrajectoryController
TrajectoryController()
BALL::VIEW::TrajectoryController::visualizeTrajectory
bool visualizeTrajectory()
BALL::VIEW::TrajectoryController::open
virtual Dataset * open(String filetype, String filename)
BALL::VIEW::TrajectoryController::bufferTrajectory
bool bufferTrajectory()
BALL::VIEW::TrajectoryController::getData
SnapShotManager * getData(Dataset *set)
BALL::VIEW::TrajectoryController::buildContextMenu
virtual QMenu * buildContextMenu(QTreeWidgetItem *item)
BALL::VIEW::TrajectoryController::write
virtual bool write(Dataset *set, String filetype, String filename)
BALL::VIEW::TrajectoryController::deleteDataset_
void deleteDataset_(Dataset *set)
BALL::VIEW::TrajectoryController::createMenuEntries
virtual bool createMenuEntries()
BALL::VIEW::VectorGridController::buildContextMenu
virtual QMenu * buildContextMenu(QTreeWidgetItem *item)
BALL::VIEW::VectorGridController::getData
VectorGrid * getData(Dataset *set)
BALL::VIEW::VectorGridController::type
static String type
Definition standardDatasets.h:290
BALL::VIEW::VectorGridController::open
virtual Dataset * open(String filetype, String filename)
BALL::VIEW::VectorGridController::dialog_
FieldLinesDialog * dialog_
Definition standardDatasets.h:301
BALL::VIEW::VectorGridController::write
virtual bool write(Dataset *set, String filetype, String filename)
BALL::VIEW::VectorGridController::VectorGridController
VectorGridController()
BALL::VIEW::VectorGridController::createMenuEntries
virtual bool createMenuEntries()
BALL::VIEW::VectorGridController::deleteDataset_
void deleteDataset_(Dataset *set)
BALL::VIEW::VectorGridController::visualizeFieldLines
bool visualizeFieldLines()
QTreeWidgetItem
dataset.h
BALL_CREATE_DATASET
#define BALL_CREATE_DATASET(TYPE)
Definition dataset.h:131
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
BALL::VIEW
Definition constraints.h:35
BALL::VIEW::VectorGrid
TRegularData3D< Vector3 > VectorGrid
Definition standardDatasets.h:251
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
BALL::RegularData3D
TRegularData3D< float > RegularData3D
Definition regularData3D.h:515
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084
boost
Definition graphAlgorithms.h:27
raytraceableContourSurfaceDialog.h
raytraceableGrid.h
regularData1D.h
regularData2D.h
regularData3D.h
vector3.h