#include <djv_mapareas.h>

Public Member Functions | |
| virtual MapAreaType | getType () const |
| virtual Rect | getRect () const |
| virtual bool | isPointInsideArea (const Point &inPoint) const |
| virtual size_t | isPointOnLine (const Point &inPoint, size_t inRadius=1) const |
| virtual String | getANTString (const PageInfo &inPageInfo, Rotation inCurrentRotation) const |
| virtual AutoPtr< MapArea > | duplicate () const |
Static Public Member Functions | |
| static AutoPtr< MapRect > | create () |
Public Attributes | |
| Rect | rect |
| Color | bgColor |
| size_t | opacity |
Represents a rect (matRect) maparea instance.
Initializes MapRect instance.
Clone this instance.
Implements Celartem::DjVu::MapArea.
| virtual String Celartem::DjVu::MapRect::getANTString | ( | const PageInfo & | inPageInfo, | |
| Rotation | inCurrentRotation | |||
| ) | const [virtual] |
Get the string for ANT* encoding.
This is for advanced purpose and should not be used for normal use.
| inPageInfo | The dimensions and rotation status of the page is used during encoding the ANT* string. | |
| inCurrentRotation | The current rotation. |
ANT* encoded representation of this maparea. Implements Celartem::DjVu::MapArea.
| virtual Rect Celartem::DjVu::MapRect::getRect | ( | ) | const [inline, virtual] |
Gets the minimum rectangle which can contain all the points of the maparea.
For rect and text areas, it is identical to the area of the maparea.
Implements Celartem::DjVu::MapArea.
| virtual MapAreaType Celartem::DjVu::MapRect::getType | ( | ) | const [inline, virtual] |
Gets the type of the shape.
Implements Celartem::DjVu::MapArea.
| virtual bool Celartem::DjVu::MapRect::isPointInsideArea | ( | const Point & | inPoint | ) | const [inline, virtual] |
Determines whether the specified point is inside the maparea or not.
| inPoint | A point to verify. |
true if the point is inside the maparea. Implements Celartem::DjVu::MapArea.
| virtual size_t Celartem::DjVu::MapRect::isPointOnLine | ( | const Point & | inPoint, | |
| size_t | inRadius = 1 | |||
| ) | const [virtual] |
Determines whether the specified point is on the border (line) or not.
| inPoint | A point to verify. | |
| inRadius | The points within the area defined by inRadius is determined as on-line. |
Implements Celartem::DjVu::MapArea.
The background color (a.k.a. hilight) of this MapRect instance.
If this color is invalid (see Color::isValid, Color::InvalidColor), the background is not filled.
The default is invalid color and the background is not filled.
The opacity of the background in 0-100. 0 means completely transparent and 100 means completely opaque.
The default is 50.
The area of this MapRect instance.
Referenced by getRect(), and isPointInsideArea().