BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
BALL::VIEW::RegularData3DController Class Reference

#include <BALL/VIEW/DATATYPE/standardDatasets.h>

Inheritance diagram for BALL::VIEW::RegularData3DController:
BALL::VIEW::DatasetController QObject BALL::Embeddable

Public Slots

bool createVectorGrid ()
bool createRaytraceableGrid ()
void computeIsoContourSurface ()
void resizeGrid ()
void createHistogramGrid ()
void visualizeGrid ()
void createSphere ()
- Public Slots inherited from BALL::VIEW::DatasetController
bool open ()
virtual bool deleteDatasets ()
 Delete all Datasets.
virtual bool deleteDataset ()
 Delete the currently highlighted Dataset.

Public Member Functions

 RegularData3DController ()
 RegularData3DController (RegularData3DController &dc)
virtual ~RegularData3DController ()
virtual bool write ()
 Show a file dialog for writing the selected Dataset.
virtual bool write (Dataset *set, String filetype, String filename)
virtual Datasetopen (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
RegularData3DresizeGrid (const RegularData3D &grid)
RegularData3DcreateHistogramGrid (const RegularData3D &grid)
RegularData3DgetData (Dataset *set)
- Public Member Functions inherited from BALL::VIEW::DatasetController
 DatasetController ()
 DatasetController (DatasetController &dc)
virtual ~DatasetController ()
void setDatasetControl (DatasetControl *dc)
DatasetControlgetDatasetControl ()
virtual bool handle (DatasetMessage *msg)
virtual bool insertDataset (Dataset *set)
virtual bool deleteDataset (Dataset *set)
vector< Dataset * > getDatasets ()
 Get all Datasets of this type in the DatasetControl.
vector< Dataset * > getSelectedDatasets ()
 Get all selected Datasets of this type in the DatasetControl.
DatasetgetSelectedDataset ()
bool hasDataset (Dataset *set)
bool hasItem (QTreeWidgetItem *item)
 Test if a given QTreeWidgetItem corresponds to a registered Dataset.
DatasetgetDataset (QTreeWidgetItem *item)
 Get the Dataset for a QTreeWidgetItem.
String getType ()
virtual void checkMenu (MainControl &mc)
vector< StringgetSupportedFileFormats ()
- Public Member Functions inherited from BALL::Embeddable
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 Embeddable (const String &identifier="<Embeddable>")
 Embeddable (const Embeddable &embeddable)
virtual ~Embeddable ()
void setIdentifier (const String &identifier)
const StringgetIdentifier () const
void unregisterThis ()
virtual void registerThis ()

Static Public Attributes

static String type

Protected Member Functions

void deleteDataset_ (Dataset *set)
- Protected Member Functions inherited from BALL::VIEW::DatasetController
void setStatusbarText (const String &text, bool important=false)
void setStatusbarText (const QString &text, bool important=false)
String getFileTypes_ ()
String getNameFromFileName_ (String filename)
QAction * insertMenuEntry_ (Position pid, const String &name, const char *slot, const String &description="", QKeySequence accel=QKeySequence())

Protected Attributes

ContourSurfaceDialogdialog_
GridVisualizationDialoggrid_dialog_
- Protected Attributes inherited from BALL::VIEW::DatasetController
String type_
vector< Stringfile_formats_
DatasetControlcontrol_
vector< QAction * > actions_
HashSet< QAction * > actions_for_one_set_
HashMap< QTreeWidgetItem
*, Dataset * > 
item_to_dataset_
HashMap< Dataset
*, QTreeWidgetItem * > 
dataset_to_item_

Additional Inherited Members

- Public Types inherited from BALL::Embeddable
typedef std::vector< Embeddable * > EmbeddableVector
- Static Protected Member Functions inherited from BALL::Embeddable
static void registerInstance_ (const std::type_info &type, const Embeddable *instance)
static void unregisterInstance_ (const Embeddable *instance)
static Size countInstances_ (const std::type_info &type)
static EmbeddablegetInstance_ (const std::type_info &type, Position index)
static EmbeddablegetInstance_ (const std::type_info &type, const String &identifier)

Detailed Description

Controller base class for one type of Dataset

Definition at line 57 of file standardDatasets.h.

Constructor & Destructor Documentation

BALL::VIEW::RegularData3DController::RegularData3DController ( )
BALL::VIEW::RegularData3DController::RegularData3DController ( RegularData3DController dc)
virtual BALL::VIEW::RegularData3DController::~RegularData3DController ( )
virtual

Member Function Documentation

virtual QMenu* BALL::VIEW::RegularData3DController::buildContextMenu ( QTreeWidgetItem item)
virtual

Create a context menu for this data type. Initial support for deleting and saving entries is included. Overload this method for providing further entries.

Reimplemented from BALL::VIEW::DatasetController.

bool BALL::VIEW::RegularData3DController::computeIsoContourSurface ( Dataset data,
const ColorRGBA color,
float  value 
)
void BALL::VIEW::RegularData3DController::computeIsoContourSurface ( )
slot
RegularData3D* BALL::VIEW::RegularData3DController::createHistogramGrid ( const RegularData3D grid)
void BALL::VIEW::RegularData3DController::createHistogramGrid ( )
slot
virtual bool BALL::VIEW::RegularData3DController::createMenuEntries ( )
virtual

Create menu entries for this data type. Initial support for open file menu entry is included. Overload this method for providing further entries.

Reimplemented from BALL::VIEW::DatasetController.

bool BALL::VIEW::RegularData3DController::createRaytraceableGrid ( )
slot
void BALL::VIEW::RegularData3DController::createSphere ( )
slot
bool BALL::VIEW::RegularData3DController::createVectorGrid ( )
slot
void BALL::VIEW::RegularData3DController::deleteDataset_ ( Dataset )
protectedvirtual

In the derived class: cast to concrete type and delete the data!

Reimplemented from BALL::VIEW::DatasetController.

RegularData3D* BALL::VIEW::RegularData3DController::getData ( Dataset set)
Size BALL::VIEW::RegularData3DController::getNextPowerOfTwo_ ( Size  in) const
bool BALL::VIEW::RegularData3DController::isGridSizePowerOfTwo ( const RegularData3D grid) const
virtual Dataset* BALL::VIEW::RegularData3DController::open ( String  filetype,
String  filename 
)
virtual

Reimplemented from BALL::VIEW::DatasetController.

RegularData3D* BALL::VIEW::RegularData3DController::resizeGrid ( const RegularData3D grid)
void BALL::VIEW::RegularData3DController::resizeGrid ( )
slot
void BALL::VIEW::RegularData3DController::visualizeGrid ( )
slot
virtual bool BALL::VIEW::RegularData3DController::write ( )
virtual

Show a file dialog for writing the selected Dataset.

Reimplemented from BALL::VIEW::DatasetController.

virtual bool BALL::VIEW::RegularData3DController::write ( Dataset set,
String  filetype,
String  filename 
)
virtual

Reimplemented from BALL::VIEW::DatasetController.

Member Data Documentation

ContourSurfaceDialog* BALL::VIEW::RegularData3DController::dialog_
protected

Definition at line 137 of file standardDatasets.h.

GridVisualizationDialog* BALL::VIEW::RegularData3DController::grid_dialog_
protected

Definition at line 138 of file standardDatasets.h.

String BALL::VIEW::RegularData3DController::type
static

Definition at line 108 of file standardDatasets.h.