widget to control the material property of a volume More...
#include <vtkKWMaterialPropertyWidget.h>


widget to control the material property of a volume
Definition at line 34 of file vtkKWMaterialPropertyWidget.h.
Reimplemented from vtkKWCompositeWidget.
Reimplemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
Definition at line 38 of file vtkKWMaterialPropertyWidget.h.
| vtkKWMaterialPropertyWidget::vtkKWMaterialPropertyWidget | ( | ) | [protected] |
| vtkKWMaterialPropertyWidget::~vtkKWMaterialPropertyWidget | ( | ) | [protected] |
| virtual const char* vtkKWMaterialPropertyWidget::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkKWCompositeWidget.
Reimplemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
| static int vtkKWMaterialPropertyWidget::IsTypeOf | ( | const char * | type | ) | [static] |
Reimplemented from vtkKWCompositeWidget.
Reimplemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
| virtual int vtkKWMaterialPropertyWidget::IsA | ( | const char * | type | ) | [virtual] |
Reimplemented from vtkKWCompositeWidget.
Reimplemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
| static vtkKWMaterialPropertyWidget* vtkKWMaterialPropertyWidget::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkKWCompositeWidget.
Reimplemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
| void vtkKWMaterialPropertyWidget::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Reimplemented from vtkKWCompositeWidget.
Reimplemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
| virtual void vtkKWMaterialPropertyWidget::SetPopupMode | ( | int | ) | [virtual] |
Display the UI as a popup (default is off). The pushbutton will display a representation of the current properties. This has to be called before Create().
| virtual int vtkKWMaterialPropertyWidget::GetPopupMode | ( | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::PopupModeOn | ( | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::PopupModeOff | ( | ) | [virtual] |
Events
| virtual vtkKWPopupButtonWithLabel* vtkKWMaterialPropertyWidget::GetPopupButton | ( | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::Update | ( | ) | [virtual] |
Refresh the interface given the value extracted from the current widget.
Reimplemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
| virtual void vtkKWMaterialPropertyWidget::UpdatePreview | ( | ) | [virtual] |
Update the preview according to current settings
| virtual void vtkKWMaterialPropertyWidget::SetPreviewSize | ( | int | ) | [virtual] |
Set/Get the size of the preview, presets and popup preview images
| virtual void vtkKWMaterialPropertyWidget::SetPresetSize | ( | int | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::SetPopupPreviewSize | ( | int | ) | [virtual] |
Events
| virtual int vtkKWMaterialPropertyWidget::GetPreviewSize | ( | ) | [virtual] |
Events
| virtual int vtkKWMaterialPropertyWidget::GetPresetSize | ( | ) | [virtual] |
Events
| virtual int vtkKWMaterialPropertyWidget::GetPopupPreviewSize | ( | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::SetGridOpacity | ( | double | ) | [virtual] |
Set/Get the grid opacity in the preview/presets
| virtual double vtkKWMaterialPropertyWidget::GetGridOpacity | ( | ) | [virtual] |
Events
| virtual double* vtkKWMaterialPropertyWidget::GetMaterialColor | ( | ) | [virtual] |
Set/Get the color of the preview/presets.
| virtual void vtkKWMaterialPropertyWidget::GetMaterialColor | ( | double & | , | |
| double & | , | |||
| double & | ||||
| ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::GetMaterialColor | ( | double | [3] | ) | [virtual] |
Events
| void vtkKWMaterialPropertyWidget::SetMaterialColor | ( | double | r, | |
| double | g, | |||
| double | b | |||
| ) |
Events
| void vtkKWMaterialPropertyWidget::SetMaterialColor | ( | double | color[3] | ) | [inline] |
Events
Definition at line 78 of file vtkKWMaterialPropertyWidget.h.
| virtual void vtkKWMaterialPropertyWidget::SetLightingParametersVisibility | ( | int | ) | [virtual] |
Set/Get the lighting parameters visibility. If set to Off, none of the ambient, diffuse, specular (etc.) scales will be displayed.
| virtual void vtkKWMaterialPropertyWidget::LightingParametersVisibilityOn | ( | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::LightingParametersVisibilityOff | ( | ) | [virtual] |
Events
| virtual int vtkKWMaterialPropertyWidget::GetLightingParametersVisibility | ( | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::SetPropertyChangedEvent | ( | int | ) | [virtual] |
Set/Get the event invoked when the property is changed/changing. Defaults to vtkKWEvent::MaterialPropertyChanged/ingEvent, this default is likely to change in subclasses to reflect what kind of property is changed (vtkKWEvent::VolumeMaterialPropertyChangedEvent for example).
| virtual int vtkKWMaterialPropertyWidget::GetPropertyChangedEvent | ( | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::SetPropertyChangingEvent | ( | int | ) | [virtual] |
Events
| virtual int vtkKWMaterialPropertyWidget::GetPropertyChangingEvent | ( | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::SetPropertyChangedCommand | ( | vtkObject * | object, | |
| const char * | method | |||
| ) | [virtual] |
Specifies commands to associate with the widget. 'PropertyChangedCommand' is invoked when the property has changed (i.e. at the end of the user interaction). 'PropertyChangingCommand' is invoked when the selected color is changing (i.e. during the user interaction). The need for a '...ChangedCommand' and '...ChangingCommand' can be explained as follows: the former can be used to be notified about any changes made to this widget *after* the corresponding user interaction has been performed (say, after releasing the mouse button that was dragging a slider, or after clicking on a checkbutton). The later can be set *additionally* to be notified about the intermediate changes that occur *during* the corresponding user interaction (say, *while* dragging a slider). While setting '...ChangedCommand' is enough to be notified about any changes, setting '...ChangingCommand' is an application-specific choice that is likely to depend on how fast you want (or can) answer to rapid changes occuring during a user interaction, if any. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command.
| virtual void vtkKWMaterialPropertyWidget::SetPropertyChangingCommand | ( | vtkObject * | object, | |
| const char * | method | |||
| ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::UpdateEnableState | ( | ) | [virtual] |
Update the "enable" state of the object and its internal parts. Depending on different Ivars (this->Enabled, the application's Limited Edition Mode, etc.), the "enable" state of the object is updated and propagated to its internal parts/subwidgets. This will, for example, enable/disable parts of the widget UI, enable/disable the visibility of 3D widgets, etc.
Reimplemented from vtkKWWidget.
Reimplemented in vtkKWVolumeMaterialPropertyWidget.
| virtual void vtkKWMaterialPropertyWidget::PropertyChangingCallback | ( | double | value | ) | [virtual] |
Callbacks. Internal, do not use.
| virtual void vtkKWMaterialPropertyWidget::PropertyChangedCallback | ( | double | value | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::PresetMaterialCallback | ( | int | preset_idx | ) | [virtual] |
Events
| virtual void vtkKWMaterialPropertyWidget::CreateWidget | ( | ) | [protected, virtual] |
Create the widget.
Reimplemented from vtkKWCompositeWidget.
Reimplemented in vtkKWVolumeMaterialPropertyWidget.
| virtual void vtkKWMaterialPropertyWidget::InvokePropertyChangedCommand | ( | ) | [protected, virtual] |
| virtual void vtkKWMaterialPropertyWidget::InvokePropertyChangingCommand | ( | ) | [protected, virtual] |
| virtual void vtkKWMaterialPropertyWidget::Pack | ( | ) | [protected, virtual] |
Pack
Reimplemented in vtkKWVolumeMaterialPropertyWidget.
| virtual void vtkKWMaterialPropertyWidget::CreateImage | ( | unsigned char * | data, | |
| double | ambient, | |||
| double | diffuse, | |||
| double | specular, | |||
| double | specular_power, | |||
| int | size | |||
| ) | [protected, virtual] |
Create a preview image given some material properties
| virtual void vtkKWMaterialPropertyWidget::SendStateEvent | ( | int | event | ) | [protected, virtual] |
Send an event representing the state of the widget
Reimplemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
| virtual void vtkKWMaterialPropertyWidget::AddDefaultPresets | ( | ) | [protected, virtual] |
Add default presets
| virtual void vtkKWMaterialPropertyWidget::CreatePresets | ( | ) | [protected, virtual] |
Create the presets
| virtual void vtkKWMaterialPropertyWidget::UpdatePopupPreview | ( | ) | [protected, virtual] |
Update the popup preview according to current settings
| virtual int vtkKWMaterialPropertyWidget::UpdatePropertyFromInterface | ( | ) | [protected, pure virtual] |
Update the property from the interface values or a preset Return 1 if the property was modified, 0 otherwise
Implemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
| virtual int vtkKWMaterialPropertyWidget::UpdatePropertyFromPreset | ( | const Preset * | preset | ) | [protected, pure virtual] |
Events
Implemented in vtkKWSurfaceMaterialPropertyWidget, and vtkKWVolumeMaterialPropertyWidget.
| virtual int vtkKWMaterialPropertyWidget::UpdateScalesFromPreset | ( | const Preset * | preset | ) | [protected, virtual] |
Update the scales from a preset
| virtual void vtkKWMaterialPropertyWidget::UpdateScales | ( | double | ambient, | |
| double | diffuse, | |||
| double | specular, | |||
| double | specular_power | |||
| ) | [protected, virtual] |
Events
| virtual int vtkKWMaterialPropertyWidget::AreControlsEnabled | ( | ) | [inline, protected, virtual] |
Return 1 if the controls should be enabled.
Reimplemented in vtkKWVolumeMaterialPropertyWidget.
Definition at line 254 of file vtkKWMaterialPropertyWidget.h.
friend class vtkKWMaterialPropertyWidgetInternals [friend] |
Definition at line 195 of file vtkKWMaterialPropertyWidget.h.
int vtkKWMaterialPropertyWidget::PopupMode [protected] |
Definition at line 153 of file vtkKWMaterialPropertyWidget.h.
int vtkKWMaterialPropertyWidget::PreviewSize [protected] |
Definition at line 154 of file vtkKWMaterialPropertyWidget.h.
int vtkKWMaterialPropertyWidget::PresetSize [protected] |
Definition at line 155 of file vtkKWMaterialPropertyWidget.h.
int vtkKWMaterialPropertyWidget::PopupPreviewSize [protected] |
Definition at line 156 of file vtkKWMaterialPropertyWidget.h.
double vtkKWMaterialPropertyWidget::GridOpacity [protected] |
Definition at line 157 of file vtkKWMaterialPropertyWidget.h.
int vtkKWMaterialPropertyWidget::LightingParametersVisibility [protected] |
Definition at line 158 of file vtkKWMaterialPropertyWidget.h.
double vtkKWMaterialPropertyWidget::MaterialColor[3] [protected] |
Definition at line 160 of file vtkKWMaterialPropertyWidget.h.
int vtkKWMaterialPropertyWidget::PropertyChangedEvent [protected] |
Events
Definition at line 164 of file vtkKWMaterialPropertyWidget.h.
int vtkKWMaterialPropertyWidget::PropertyChangingEvent [protected] |
Events
Definition at line 165 of file vtkKWMaterialPropertyWidget.h.
char* vtkKWMaterialPropertyWidget::PropertyChangedCommand [protected] |
Commands
Definition at line 170 of file vtkKWMaterialPropertyWidget.h.
char* vtkKWMaterialPropertyWidget::PropertyChangingCommand [protected] |
Events
Definition at line 171 of file vtkKWMaterialPropertyWidget.h.
vtkKWMaterialPropertyWidgetInternals* vtkKWMaterialPropertyWidget::Internals [protected] |
PIMPL Encapsulation for STL containers
Reimplemented from vtkKWCoreWidget.
Definition at line 194 of file vtkKWMaterialPropertyWidget.h.
Definition at line 200 of file vtkKWMaterialPropertyWidget.h.
Definition at line 201 of file vtkKWMaterialPropertyWidget.h.
vtkKWFrame* vtkKWMaterialPropertyWidget::ControlFrame [protected] |
Definition at line 202 of file vtkKWMaterialPropertyWidget.h.
vtkKWFrame* vtkKWMaterialPropertyWidget::LightingFrame [protected] |
Definition at line 203 of file vtkKWMaterialPropertyWidget.h.
Definition at line 204 of file vtkKWMaterialPropertyWidget.h.
Definition at line 205 of file vtkKWMaterialPropertyWidget.h.
Definition at line 206 of file vtkKWMaterialPropertyWidget.h.
Definition at line 207 of file vtkKWMaterialPropertyWidget.h.
vtkKWFrame* vtkKWMaterialPropertyWidget::PresetsFrame [protected] |
Definition at line 208 of file vtkKWMaterialPropertyWidget.h.
Definition at line 209 of file vtkKWMaterialPropertyWidget.h.
Definition at line 210 of file vtkKWMaterialPropertyWidget.h.
1.6.1