Computer Assited Medical Intervention Tool Kit  version 4.0
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>

Inherits QObject.

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).

Member Enumeration Documentation

◆ GeometricType

this is a copy of StructureProperties::GeometricType, I tried to reuse it but it generated crashes...

Enumerator
INVALID 
ATOM 
TETRAHEDRON 
HEXAHEDRON 
WEDGE 
PYRAMID 
LINE 
POLY_LINE 
POLY_VERTEX 
TRIANGLE 
QUAD 

Constructor & Destructor Documentation

◆ CellDCProperties()

CellDCProperties::CellDCProperties ( CellDC *  dc)

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

Default construtor

References updateProperties().

◆ ~CellDCProperties()

CellDCProperties::~CellDCProperties ( )
inline

Member Function Documentation

◆ event()

bool CellDCProperties::event ( QEvent *  e)
virtual

intercept signal for dynamic property changed.

References CellDC::getCell(), Cell::getProperties(), myDC, and Properties::set().

◆ getGeometry()

CellDCProperties::GeometricType CellDCProperties::getGeometry ( ) const

◆ getName()

QString CellDCProperties::getName ( ) const

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

References camitk::Component::getName(), and myDC.

Referenced by setName(), and ~CellDCProperties().

◆ setName()

void CellDCProperties::setName ( const QString  id)

Set and get method for all the properties.

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

References CellDC::getCell(), getName(), myDC, camitk::Component::refresh(), camitk::Component::setModified(), and CellDC::setName().

Referenced by ~CellDCProperties().

◆ updateProperties()

void CellDCProperties::updateProperties ( CellDC *  dc)

Member Data Documentation

◆ myDC

CellDC* CellDCProperties::myDC
private

the currently selected CellDC

Referenced by event(), getGeometry(), getName(), setName(), and updateProperties().

Property Documentation

◆ geometry

GeometricType CellDCProperties::geometry
read

the geometric type property

◆ name

QString CellDCProperties::name
readwrite

the index property that will be managed in the property dialog


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