Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
PointSetHandle Class Reference

#include <toy-framework-2.h>

Inheritance diagram for PointSetHandle:
Handle

Public Member Functions

 PointSetHandle ()
 
void draw (cairo_t *cr, bool annotes=false) override
 
void * hit (Geom::Point mouse) override
 
void move_to (void *hit, Geom::Point om, Geom::Point m) override
 
void push_back (double x, double y)
 
void push_back (Geom::Point pt)
 
unsigned size ()
 
Geom::D2< Geom::SBasisasBezier ()
 
void load (FILE *f) override
 
void save (FILE *f) override
 
- Public Member Functions inherited from Handle
 Handle ()
 
virtual ~Handle ()
 

Public Attributes

std::vector< Geom::Pointpts
 
- Public Attributes inherited from Handle
std::string name
 
float rgb [3]
 

Detailed Description

Definition at line 180 of file toy-framework-2.h.

Constructor & Destructor Documentation

◆ PointSetHandle()

PointSetHandle::PointSetHandle ( )
inline

Definition at line 182 of file toy-framework-2.h.

Member Function Documentation

◆ asBezier()

Geom::D2< Geom::SBasis > PointSetHandle::asBezier ( )

Definition at line 913 of file toy-framework-2.cpp.

References pts, and size().

Referenced by LPEToy::draw().

◆ draw()

void PointSetHandle::draw ( cairo_t cr,
bool  annotes = false 
)
overridevirtual

Implements Handle.

Definition at line 874 of file toy-framework-2.cpp.

References draw_circ(), draw_number(), Handle::name, and pts.

◆ hit()

void * PointSetHandle::hit ( Geom::Point  mouse)
overridevirtual

Implements Handle.

Definition at line 881 of file toy-framework-2.cpp.

References Geom::distance(), and pts.

Referenced by move_to().

◆ load()

void PointSetHandle::load ( FILE *  f)
overridevirtual

Implements Handle.

Definition at line 895 of file toy-framework-2.cpp.

References pts, and read_point().

◆ move_to()

void PointSetHandle::move_to ( void *  hit,
Geom::Point  om,
Geom::Point  m 
)
overridevirtual

Implements Handle.

Definition at line 889 of file toy-framework-2.cpp.

References hit().

◆ push_back() [1/2]

void PointSetHandle::push_back ( double  x,
double  y 
)
inline

Definition at line 188 of file toy-framework-2.h.

References pts.

Referenced by LPEToy::LPEToy().

◆ push_back() [2/2]

void PointSetHandle::push_back ( Geom::Point  pt)
inline

Definition at line 189 of file toy-framework-2.h.

References pts.

◆ save()

void PointSetHandle::save ( FILE *  f)
overridevirtual

Implements Handle.

Definition at line 904 of file toy-framework-2.cpp.

References pts.

◆ size()

unsigned PointSetHandle::size ( )
inline

Definition at line 190 of file toy-framework-2.h.

References pts.

Referenced by asBezier().

Member Data Documentation

◆ pts

std::vector<Geom::Point> PointSetHandle::pts

Definition at line 183 of file toy-framework-2.h.

Referenced by asBezier(), draw(), hit(), load(), push_back(), push_back(), save(), and size().


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