CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Types | Public Slots | Public Member Functions | Protected Slots | Protected Attributes | Properties | List of all members
ctkVTKPropertyWidget Class Reference

#include <Libs/Visualization/VTK/Widgets/ctkVTKPropertyWidget.h>

Inheritance diagram for ctkVTKPropertyWidget:
Inheritance graph
[legend]
Collaboration diagram for ctkVTKPropertyWidget:
Collaboration graph
[legend]

Public Types

enum  GroupState {
  RepresentationVisible = 0x00001, RepresentationCollapsed = 0x00002, ColorVisible = 0x00010, ColorCollapsed = 0x00020,
  LightingVisible = 0x00100, LightingCollapsed = 0x00200, MaterialVisible = 0x01000, MaterialCollapsed = 0x02000,
  AllVisible = RepresentationVisible | ColorVisible | LightingVisible | MaterialVisible, AllCollapsed = RepresentationCollapsed | ColorCollapsed | LightingCollapsed | MaterialCollapsed
}
 

Public Slots

virtual void setBackfaceCulling (bool newBackfaceCulling)
 
virtual void setColor (const QColor &newColor)
 
virtual void setEdgeColor (const QColor &newColor)
 
virtual void setEdgeVisibility (bool newEdgeVisibility)
 
virtual void setFrontfaceCulling (bool newFrontfaceCulling)
 
virtual void setInterpolation (int newInterpolation)
 
virtual void setLighting (bool newLighting)
 
virtual void setLineWidth (double newLineWidth)
 
virtual void setOpacity (double newOpacity)
 
virtual void setPointSize (double newPointSize)
 
virtual void setProperty (vtkProperty *property)
 
virtual void setRepresentation (int newRepresentation)
 
virtual void setShading (bool newShading)
 

Public Member Functions

virtual bool backfaceCulling () const
 
virtual QColor color () const
 
ctkColorPickerButton::ColorDialogOptions colorDialogOptions () const
 
 ctkVTKPropertyWidget (QWidget *parentWidget)
 Construct a ctkVTKPropertyWidget with a default vtkProperty. More...
 
 ctkVTKPropertyWidget (vtkProperty *property, QWidget *parentWidget)
 Construct a ctkVTKPropertyWidget with the given vtkProperty. More...
 
virtual QColor edgeColor () const
 
virtual bool edgeVisibility () const
 
virtual bool frontfaceCulling () const
 
ctkVTKPropertyWidget::GroupsState groupsState () const
 
virtual int interpolation () const
 
virtual bool lighting () const
 
virtual double lineWidth () const
 
virtual double opacity () const
 
virtual double pointSize () const
 
vtkProperty * property () const
 
virtual int representation () const
 
void setColorDialogOptions (ctkColorPickerButton::ColorDialogOptions options)
 
void setGroupsState (ctkVTKPropertyWidget::GroupsState state)
 
virtual bool shading () const
 
virtual ~ctkVTKPropertyWidget ()
 

Protected Slots

void updateWidgetFromProperty ()
 

Protected Attributes

QScopedPointer< ctkVTKPropertyWidgetPrivate > d_ptr
 

Properties

ctkColorPickerButton::ColorDialogOptions colorDialogOptions
 
GroupsState groupsState
 

Detailed Description

Definition at line 36 of file ctkVTKPropertyWidget.h.

Member Enumeration Documentation

Enumerator
RepresentationVisible 
RepresentationCollapsed 
ColorVisible 
ColorCollapsed 
LightingVisible 
LightingCollapsed 
MaterialVisible 
MaterialCollapsed 
AllVisible 
AllCollapsed 

Definition at line 56 of file ctkVTKPropertyWidget.h.

Constructor & Destructor Documentation

ctkVTKPropertyWidget::ctkVTKPropertyWidget ( QWidget *  parentWidget)

Construct a ctkVTKPropertyWidget with a default vtkProperty.

ctkVTKPropertyWidget::ctkVTKPropertyWidget ( vtkProperty *  property,
QWidget *  parentWidget 
)

Construct a ctkVTKPropertyWidget with the given vtkProperty.

virtual ctkVTKPropertyWidget::~ctkVTKPropertyWidget ( )
virtual

Member Function Documentation

virtual bool ctkVTKPropertyWidget::backfaceCulling ( ) const
virtual
virtual QColor ctkVTKPropertyWidget::color ( ) const
virtual
ctkColorPickerButton::ColorDialogOptions ctkVTKPropertyWidget::colorDialogOptions ( ) const
virtual QColor ctkVTKPropertyWidget::edgeColor ( ) const
virtual
virtual bool ctkVTKPropertyWidget::edgeVisibility ( ) const
virtual
virtual bool ctkVTKPropertyWidget::frontfaceCulling ( ) const
virtual
ctkVTKPropertyWidget::GroupsState ctkVTKPropertyWidget::groupsState ( ) const
virtual int ctkVTKPropertyWidget::interpolation ( ) const
virtual
virtual bool ctkVTKPropertyWidget::lighting ( ) const
virtual
virtual double ctkVTKPropertyWidget::lineWidth ( ) const
virtual
virtual double ctkVTKPropertyWidget::opacity ( ) const
virtual
virtual double ctkVTKPropertyWidget::pointSize ( ) const
virtual
vtkProperty* ctkVTKPropertyWidget::property ( ) const
virtual int ctkVTKPropertyWidget::representation ( ) const
virtual
virtual void ctkVTKPropertyWidget::setBackfaceCulling ( bool  newBackfaceCulling)
virtualslot
virtual void ctkVTKPropertyWidget::setColor ( const QColor &  newColor)
virtualslot
void ctkVTKPropertyWidget::setColorDialogOptions ( ctkColorPickerButton::ColorDialogOptions  options)
virtual void ctkVTKPropertyWidget::setEdgeColor ( const QColor &  newColor)
virtualslot
virtual void ctkVTKPropertyWidget::setEdgeVisibility ( bool  newEdgeVisibility)
virtualslot
virtual void ctkVTKPropertyWidget::setFrontfaceCulling ( bool  newFrontfaceCulling)
virtualslot
void ctkVTKPropertyWidget::setGroupsState ( ctkVTKPropertyWidget::GroupsState  state)
virtual void ctkVTKPropertyWidget::setInterpolation ( int  newInterpolation)
virtualslot
virtual void ctkVTKPropertyWidget::setLighting ( bool  newLighting)
virtualslot
virtual void ctkVTKPropertyWidget::setLineWidth ( double  newLineWidth)
virtualslot
virtual void ctkVTKPropertyWidget::setOpacity ( double  newOpacity)
virtualslot
virtual void ctkVTKPropertyWidget::setPointSize ( double  newPointSize)
virtualslot
virtual void ctkVTKPropertyWidget::setProperty ( vtkProperty *  property)
virtualslot
virtual void ctkVTKPropertyWidget::setRepresentation ( int  newRepresentation)
virtualslot
virtual void ctkVTKPropertyWidget::setShading ( bool  newShading)
virtualslot
virtual bool ctkVTKPropertyWidget::shading ( ) const
virtual
void ctkVTKPropertyWidget::updateWidgetFromProperty ( )
protectedslot

Member Data Documentation

QScopedPointer<ctkVTKPropertyWidgetPrivate> ctkVTKPropertyWidget::d_ptr
protected

Definition at line 122 of file ctkVTKPropertyWidget.h.

Property Documentation

ctkColorPickerButton::ColorDialogOptions ctkVTKPropertyWidget::colorDialogOptions
readwrite

This property controls the color dialog option of the Color and EdgeColor color picker buttons. Same default as ctkColorPickerbutton

Definition at line 53 of file ctkVTKPropertyWidget.h.

GroupsState ctkVTKPropertyWidget::groupsState
readwrite

Show/Hide, expand/collapse groups in the widget. Groups are visible by default and Color is the only expanded group.

See also
groupsState(), setGroupsState()

Definition at line 48 of file ctkVTKPropertyWidget.h.


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