Skip to content

shapeworks::PaintWidget

Inherits from vtkAbstractWidget

Protected Types

Name
enum @0

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

Protected Types Documentation

enum @0

Enumerator Value Description
Start
Paint
Erase

Public Functions Documentation

function New

static PaintWidget * New()

function vtkTypeMacro

vtkTypeMacro(
    PaintWidget ,
    vtkAbstractWidget 
)

function PrintSelf

void PrintSelf(
    ostream & os,
    vtkIndent indent
)

function vtkSetMacro

vtkSetMacro(
    PointPlacer ,
    vtkPointPlacer * 
)

function vtkGetMacro

vtkGetMacro(
    PointPlacer ,
    vtkPointPlacer * 
)

function vtkSetMacro

vtkSetMacro(
    Renderer ,
    vtkRenderer * 
)

function vtkGetMacro

vtkGetMacro(
    Renderer ,
    vtkRenderer * 
)

function set_viewer

void set_viewer(
    Viewer * viewer
)

function SetEnabled

virtual void SetEnabled(
    int 
)

function SetRepresentation

inline void SetRepresentation(
    vtkContourRepresentation * r
)

function CreateDefaultRepresentation

void CreateDefaultRepresentation()

function update_position

void update_position()

function Initialize

virtual void Initialize(
    vtkPolyData * poly,
    int state =1
)

function Initialize

inline virtual void Initialize()

function set_brush_size

void set_brush_size(
    double size
)

function get_brush_size

double get_brush_size()

function set_brush_color

void set_brush_color(
    float r,
    float g,
    float b
)

Protected Functions Documentation

function PaintWidget

PaintWidget()

function ~PaintWidget

~PaintWidget()

function use_point_placer

bool use_point_placer(
    double displayPos[2],
    int newState
)

function set_cursor

void set_cursor(
    int requestedShape
)

function StartPaintAction

static void StartPaintAction(
    vtkAbstractWidget * w
)

function EndPaintAction

static void EndPaintAction(
    vtkAbstractWidget * w
)

function StartEraseAction

static void StartEraseAction(
    vtkAbstractWidget * w
)

function EndEraseAction

static void EndEraseAction(
    vtkAbstractWidget * w
)

function MoveAction

static void MoveAction(
    vtkAbstractWidget * w
)

function LeaveAction

static void LeaveAction(
    vtkAbstractWidget * w
)

function KeyPressAction

static void KeyPressAction(
    vtkAbstractWidget * w
)

Protected Attributes Documentation

variable WidgetState

int WidgetState;

variable PointPlacer

vtkPointPlacer * PointPlacer;

variable Renderer

vtkRenderer * Renderer;

variable sphere_cursor_

StudioSphereRepresentation * sphere_cursor_;

variable mouse_in_window_

bool mouse_in_window_;

variable viewer_

Viewer * viewer_;

Updated on 2022-07-23 at 17:50:03 -0600