shapeworks::PaintWidget
Inherits from vtkAbstractWidget
Protected Types
| Name | |
|---|---|
| enum | @5 |
Public Functions
| Name | |
|---|---|
| PaintWidget * | New() |
| vtkTypeMacro(PaintWidget , vtkAbstractWidget ) | |
| void | PrintSelf(ostream & os, vtkIndent indent) |
| vtkSetMacro(PointPlacer , vtkPointPlacer * ) | |
| vtkGetMacro(PointPlacer , vtkPointPlacer * ) | |
| vtkSetMacro(Renderer , vtkRenderer * ) | |
| vtkGetMacro(Renderer , vtkRenderer * ) | |
| void | set_viewer(Viewer * viewer) |
| void | set_circle_mode(bool circle_mode) |
| virtual void | SetEnabled(int ) |
| void | SetRepresentation(vtkContourRepresentation * r) |
| void | CreateDefaultRepresentation() |
| void | update_position() |
| virtual void | Initialize(vtkPolyData * poly, int state =1) |
| virtual void | Initialize() |
| void | set_brush_size(double size) |
| double | get_brush_size() |
| void | set_brush_color(float r, float g, float b) |
Protected Functions
| Name | |
|---|---|
| PaintWidget() | |
| ~PaintWidget() | |
| bool | use_point_placer(double displayPos[2], int newState) |
| void | set_cursor(int requestedShape) |
| void | StartPaintAction(vtkAbstractWidget * w) |
| void | EndPaintAction(vtkAbstractWidget * w) |
| void | StartEraseAction(vtkAbstractWidget * w) |
| void | EndEraseAction(vtkAbstractWidget * w) |
| void | MoveAction(vtkAbstractWidget * w) |
| void | LeaveAction(vtkAbstractWidget * w) |
| void | KeyPressAction(vtkAbstractWidget * w) |
Protected Attributes
| Name | |
|---|---|
| int | WidgetState |
| vtkPointPlacer * | PointPlacer |
| vtkRenderer * | Renderer |
| StudioSphereRepresentation * | sphere_cursor_ |
| bool | mouse_in_window_ |
| Viewer * | viewer_ |
| bool | circle_mode_ |
Protected Types Documentation
enum @5
| Enumerator | Value | Description |
|---|---|---|
| Start | ||
| Paint | ||
| Erase |
Public Functions Documentation
function New
cpp
static PaintWidget * New()
function vtkTypeMacro
cpp
vtkTypeMacro(
PaintWidget ,
vtkAbstractWidget
)
function PrintSelf
cpp
void PrintSelf(
ostream & os,
vtkIndent indent
)
function vtkSetMacro
cpp
vtkSetMacro(
PointPlacer ,
vtkPointPlacer *
)
function vtkGetMacro
cpp
vtkGetMacro(
PointPlacer ,
vtkPointPlacer *
)
function vtkSetMacro
cpp
vtkSetMacro(
Renderer ,
vtkRenderer *
)
function vtkGetMacro
cpp
vtkGetMacro(
Renderer ,
vtkRenderer *
)
function set_viewer
cpp
void set_viewer(
Viewer * viewer
)
function set_circle_mode
cpp
void set_circle_mode(
bool circle_mode
)
function SetEnabled
cpp
virtual void SetEnabled(
int
)
function SetRepresentation
cpp
inline void SetRepresentation(
vtkContourRepresentation * r
)
function CreateDefaultRepresentation
cpp
void CreateDefaultRepresentation()
function update_position
cpp
void update_position()
function Initialize
cpp
virtual void Initialize(
vtkPolyData * poly,
int state =1
)
function Initialize
cpp
inline virtual void Initialize()
function set_brush_size
cpp
void set_brush_size(
double size
)
function get_brush_size
cpp
double get_brush_size()
function set_brush_color
cpp
void set_brush_color(
float r,
float g,
float b
)
Protected Functions Documentation
function PaintWidget
cpp
PaintWidget()
function ~PaintWidget
cpp
~PaintWidget()
function use_point_placer
cpp
bool use_point_placer(
double displayPos[2],
int newState
)
function set_cursor
cpp
void set_cursor(
int requestedShape
)
function StartPaintAction
cpp
static void StartPaintAction(
vtkAbstractWidget * w
)
function EndPaintAction
cpp
static void EndPaintAction(
vtkAbstractWidget * w
)
function StartEraseAction
cpp
static void StartEraseAction(
vtkAbstractWidget * w
)
function EndEraseAction
cpp
static void EndEraseAction(
vtkAbstractWidget * w
)
function MoveAction
cpp
static void MoveAction(
vtkAbstractWidget * w
)
function LeaveAction
cpp
static void LeaveAction(
vtkAbstractWidget * w
)
function KeyPressAction
cpp
static void KeyPressAction(
vtkAbstractWidget * w
)
Protected Attributes Documentation
variable WidgetState
cpp
int WidgetState;
variable PointPlacer
cpp
vtkPointPlacer * PointPlacer;
variable Renderer
cpp
vtkRenderer * Renderer;
variable sphere_cursor_
cpp
StudioSphereRepresentation * sphere_cursor_;
variable mouse_in_window_
cpp
bool mouse_in_window_;
variable viewer_
cpp
Viewer * viewer_;
variable circle_mode_
cpp
bool circle_mode_ = false;
Updated on 2026-03-31 at 16:02:10 +0000