Abstract base class for circles and ellipses in Hipp.
More...
#include <HippEllipse.h>
List of all members.
Detailed Description
Abstract base class for circles and ellipses in Hipp.
- Author:
- Delphine Szymczak
Shapes are the building blocks of Hipp documents. They know how to represent themselves in the .svg xml format (HippShape::LoadObject and HippShape::SaveObject) and in the HippView (HippShape::OnDraw). Circles are one kind of shape.
- Todo:
Create shapes for Path, etc.
Figure out how to properly import and convert Path objects that are really shapes
Constructor & Destructor Documentation
| HippEllipse::HippEllipse |
( |
void |
| ) |
|
| HippEllipse::~HippEllipse |
( |
void |
| ) |
|
Member Function Documentation
| bool HippEllipse::containsPoint |
( |
wxPoint |
p | ) |
const [virtual] |
| const wxRect & HippEllipse::getBounds |
( |
| ) |
const [virtual] |
| wxPoint HippEllipse::getCenter |
( |
| ) |
|
| ShapeType HippEllipse::getShapeType |
( |
| ) |
[virtual] |
| int HippEllipse::getXRadius |
( |
| ) |
|
| int HippEllipse::getYRadius |
( |
| ) |
|
| void hipp::HippEllipse::LoadObject |
( |
const xercesc::Attributes & |
attrs, |
|
|
const XMLCh *const |
localnam = XMLString::transcode("ellipse") |
|
) |
| [virtual] |
Loads the shape from a set of SVG attributes and the SVG tag name, provided by Xerces-C.
Hipp uses a Xerces-C SAX2 XML parser to traverse a .svg input file. When a known shape is encountered, LoadObject is called with the attributes that are found. The HippShape implementation checks for <title> and <desc> tags, which are universally available to shapes. This function should be overridden in derived classes to load the appropriate object.
Reimplemented from hipp::HippShape.
| void HippEllipse::move |
( |
int |
diffX, |
|
|
int |
diffY |
|
) |
| [virtual] |
| void HippEllipse::OnDraw |
( |
Cairo::RefPtr< Cairo::Context > |
context, |
|
|
bool |
isHaptic = true |
|
) |
| const [virtual] |
| ostream & HippEllipse::SaveObject |
( |
ostream & |
stream | ) |
|
| void HippEllipse::setCenter |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
| void HippEllipse::setRadius |
( |
int |
rx, |
|
|
int |
ry |
|
) |
| |
| void HippEllipse::zoom |
( |
int |
scaleX, |
|
|
int |
scaleY |
|
) |
| [virtual] |
The documentation for this class was generated from the following files: