List of all members.
Detailed Description
Abstract base class for lines 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). Lines are one kind of shape.
- Todo:
Create shapes for Ellipse, Rectangle, Path, etc.
Figure out how to properly import and convert Path objects that are really shapes
Constructor & Destructor Documentation
| HippLine::HippLine |
( |
void |
|
) |
|
| HippLine::~HippLine |
( |
void |
|
) |
|
Member Function Documentation
| HippLine * HippLine::clone |
( |
|
) |
const [virtual] |
| bool HippLine::containsPoint |
( |
wxPoint |
p |
) |
const [virtual] |
| const wxRect & HippLine::getBounds |
( |
|
) |
const [virtual] |
| wxPoint HippLine::getP1 |
( |
|
) |
|
| wxPoint HippLine::getP2 |
( |
|
) |
|
| ShapeType hipp::HippLine::getShapeType |
( |
|
) |
[inline, virtual] |
| bool HippLine::isHorizontal |
( |
|
) |
|
| bool HippLine::isVertical |
( |
|
) |
|
| void hipp::HippLine::LoadObject |
( |
const xercesc::Attributes & |
attrs, |
|
|
const XMLCh *const |
localname = XMLString::transcode("line") | |
|
) |
| | [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 HippLine::move |
( |
int |
diffX, |
|
|
int |
diffY | |
|
) |
| | [virtual] |
| void HippLine::OnDraw |
( |
Cairo::RefPtr< Cairo::Context > |
context, |
|
|
bool |
isHaptic = true | |
|
) |
| | const [virtual] |
| ostream & HippLine::SaveObject |
( |
ostream & |
stream |
) |
|
| void HippLine::setP1 |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
| void HippLine::setP2 |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
| void HippLine::zoom |
( |
double |
scaleX, |
|
|
double |
scaleY | |
|
) |
| | [virtual] |
The documentation for this class was generated from the following files: