Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Member Functions | Properties | Private Attributes | List of all members
CellDCProperties Class Reference

The class CellDCProperties defines an QObject that allows user interaction with properties of a cell (in an automatically generated UI) More...

#include <CellDCProperties.h>

+ Inheritance diagram for CellDCProperties:

Public Types

enum  GeometricType {
  INVALID, ATOM, TETRAHEDRON, HEXAHEDRON,
  WEDGE, PYRAMID, LINE, POLY_LINE,
  POLY_VERTEX, TRIANGLE, QUAD
}
 this is a copy of StructureProperties::GeometricType, I tried to reuse it but it generated crashes... More...
 

Public Member Functions

 CellDCProperties (CellDC *)
 the Qt property enum has to be build from the C++ enum GeometricType More...
 
virtual bool event (QEvent *e)
 intercept signal for dynamic property changed. More...
 
GeometricType getGeometry () const
 get the geometric type More...
 
QString getName () const
 get the atom's index in a form the property editor understands More...
 
void setName (const QString)
 Set and get method for all the properties. More...
 
void updateProperties (CellDC *)
 change the currently managed CellDC and update the value of the properties More...
 
 ~CellDCProperties ()
 

Properties

GeometricType geometry
 the geometric type property More...
 
QString name
 the index property that will be managed in the property dialog More...
 

Private Attributes

CellDC * myDC
 the currently selected CellDC More...
 

Detailed Description

The class CellDCProperties defines an QObject that allows user interaction with properties of a cell (in an automatically generated UI)

The default cell properties are created thanks to Q_PROPERTY. The extra properties found in the PML document are also available thanks to the dynamic features of the Qt's Property System (see qt documentation).

Constructor & Destructor Documentation

CellDCProperties::CellDCProperties ( CellDC *  )

the Qt property enum has to be build from the C++ enum GeometricType

Default construtor

CellDCProperties::~CellDCProperties ( )
inline

Member Function Documentation

virtual bool CellDCProperties::event ( QEvent *  e)
virtual

intercept signal for dynamic property changed.

GeometricType CellDCProperties::getGeometry ( ) const

get the geometric type

QString CellDCProperties::getName ( ) const

get the atom's index in a form the property editor understands

void CellDCProperties::setName ( const QString  )

Set and get method for all the properties.

change the cell's name (if name is not an index)

void CellDCProperties::updateProperties ( CellDC *  )

change the currently managed CellDC and update the value of the properties

Member Data Documentation

CellDC* CellDCProperties::myDC
private

the currently selected CellDC

Property Documentation

GeometricType CellDCProperties::geometry
readprivate

the geometric type property

QString CellDCProperties::name
readwriteprivate

the index property that will be managed in the property dialog


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