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

◆ GroupState

Enumerator
RepresentationVisible 
RepresentationCollapsed 
ColorVisible 
ColorCollapsed 
LightingVisible 
LightingCollapsed 
MaterialVisible 
MaterialCollapsed 
AllVisible 
AllCollapsed 

Definition at line 56 of file ctkVTKPropertyWidget.h.

Constructor & Destructor Documentation

◆ ctkVTKPropertyWidget() [1/2]

ctkVTKPropertyWidget::ctkVTKPropertyWidget ( QWidget *  parentWidget)

Construct a ctkVTKPropertyWidget with a default vtkProperty.

◆ ctkVTKPropertyWidget() [2/2]

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

Construct a ctkVTKPropertyWidget with the given vtkProperty.

◆ ~ctkVTKPropertyWidget()

virtual ctkVTKPropertyWidget::~ctkVTKPropertyWidget ( )
virtual

Member Function Documentation

◆ backfaceCulling()

virtual bool ctkVTKPropertyWidget::backfaceCulling ( ) const
virtual

◆ color()

virtual QColor ctkVTKPropertyWidget::color ( ) const
virtual

◆ colorDialogOptions()

ctkColorPickerButton::ColorDialogOptions ctkVTKPropertyWidget::colorDialogOptions ( ) const

◆ edgeColor()

virtual QColor ctkVTKPropertyWidget::edgeColor ( ) const
virtual

◆ edgeVisibility()

virtual bool ctkVTKPropertyWidget::edgeVisibility ( ) const
virtual

◆ frontfaceCulling()

virtual bool ctkVTKPropertyWidget::frontfaceCulling ( ) const
virtual

◆ groupsState()

ctkVTKPropertyWidget::GroupsState ctkVTKPropertyWidget::groupsState ( ) const

◆ interpolation()

virtual int ctkVTKPropertyWidget::interpolation ( ) const
virtual

◆ lighting()

virtual bool ctkVTKPropertyWidget::lighting ( ) const
virtual

◆ lineWidth()

virtual double ctkVTKPropertyWidget::lineWidth ( ) const
virtual

◆ opacity()

virtual double ctkVTKPropertyWidget::opacity ( ) const
virtual

◆ pointSize()

virtual double ctkVTKPropertyWidget::pointSize ( ) const
virtual

◆ property()

vtkProperty* ctkVTKPropertyWidget::property ( ) const

◆ representation()

virtual int ctkVTKPropertyWidget::representation ( ) const
virtual

◆ setBackfaceCulling

virtual void ctkVTKPropertyWidget::setBackfaceCulling ( bool  newBackfaceCulling)
virtualslot

◆ setColor

virtual void ctkVTKPropertyWidget::setColor ( const QColor &  newColor)
virtualslot

◆ setColorDialogOptions()

void ctkVTKPropertyWidget::setColorDialogOptions ( ctkColorPickerButton::ColorDialogOptions  options)

◆ setEdgeColor

virtual void ctkVTKPropertyWidget::setEdgeColor ( const QColor &  newColor)
virtualslot

◆ setEdgeVisibility

virtual void ctkVTKPropertyWidget::setEdgeVisibility ( bool  newEdgeVisibility)
virtualslot

◆ setFrontfaceCulling

virtual void ctkVTKPropertyWidget::setFrontfaceCulling ( bool  newFrontfaceCulling)
virtualslot

◆ setGroupsState()

void ctkVTKPropertyWidget::setGroupsState ( ctkVTKPropertyWidget::GroupsState  state)

◆ setInterpolation

virtual void ctkVTKPropertyWidget::setInterpolation ( int  newInterpolation)
virtualslot

◆ setLighting

virtual void ctkVTKPropertyWidget::setLighting ( bool  newLighting)
virtualslot

◆ setLineWidth

virtual void ctkVTKPropertyWidget::setLineWidth ( double  newLineWidth)
virtualslot

◆ setOpacity

virtual void ctkVTKPropertyWidget::setOpacity ( double  newOpacity)
virtualslot

◆ setPointSize

virtual void ctkVTKPropertyWidget::setPointSize ( double  newPointSize)
virtualslot

◆ setProperty

virtual void ctkVTKPropertyWidget::setProperty ( vtkProperty *  property)
virtualslot

◆ setRepresentation

virtual void ctkVTKPropertyWidget::setRepresentation ( int  newRepresentation)
virtualslot

◆ setShading

virtual void ctkVTKPropertyWidget::setShading ( bool  newShading)
virtualslot

◆ shading()

virtual bool ctkVTKPropertyWidget::shading ( ) const
virtual

◆ updateWidgetFromProperty

void ctkVTKPropertyWidget::updateWidgetFromProperty ( )
protectedslot

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkVTKPropertyWidgetPrivate> ctkVTKPropertyWidget::d_ptr
protected

Definition at line 122 of file ctkVTKPropertyWidget.h.

Property Documentation

◆ colorDialogOptions

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 41 of file ctkVTKPropertyWidget.h.

◆ groupsState

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 41 of file ctkVTKPropertyWidget.h.


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