#include <djv_mapareas.h>
Public Member Functions | |
virtual MapAreaType | getType () const =0 |
virtual Rect | getRect () const =0 |
virtual bool | isPointInsideArea (const Point &inPoint) const =0 |
virtual size_t | isPointOnLine (const Point &inPoint, size_t inRadius=1) const =0 |
virtual String | getANTString (const PageInfo &inPageInfo, Rotation inCurrentRotation) const =0 |
virtual AutoPtr< MapArea > | duplicate () const =0 |
Public Member Functions inherited from Celartem::Referable | |
Referable () | |
void | addRef () const |
void | releaseRef () const |
size_t | getReferenceCount () const |
Public Attributes | |
Link | link |
Link to another resource. More... | |
String | target |
The link target. More... | |
String | text |
The text of the link. More... | |
BorderType | borderType |
The border type. More... | |
Color | lineColor |
The color of the border/line. More... | |
size_t | lineWidth |
The width of the line. More... | |
bool | borderAlwaysVisible |
Determines whether the border is always shown or not. More... | |
Protected Member Functions | |
MapArea () | |
Additional Inherited Members | |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
Abstract class for MapArea types.
|
inlineprotected |
For initialization of MapArea variations.
Clone this instance.
Implemented in Celartem::DjVu::MapText, Celartem::DjVu::MapLine, Celartem::DjVu::MapPoly, Celartem::DjVu::MapOval, and Celartem::DjVu::MapRect.
|
pure 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. Implemented in Celartem::DjVu::MapText, Celartem::DjVu::MapLine, Celartem::DjVu::MapPoly, Celartem::DjVu::MapOval, and Celartem::DjVu::MapRect.
|
pure 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.
Implemented in Celartem::DjVu::MapText, Celartem::DjVu::MapLine, Celartem::DjVu::MapPoly, Celartem::DjVu::MapOval, and Celartem::DjVu::MapRect.
|
pure virtual |
Gets the type of the shape.
Implemented in Celartem::DjVu::MapText, Celartem::DjVu::MapLine, Celartem::DjVu::MapPoly, Celartem::DjVu::MapOval, and Celartem::DjVu::MapRect.
|
pure 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. Implemented in Celartem::DjVu::MapText, Celartem::DjVu::MapLine, Celartem::DjVu::MapPoly, Celartem::DjVu::MapOval, and Celartem::DjVu::MapRect.
|
pure 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. |
Implemented in Celartem::DjVu::MapText, Celartem::DjVu::MapLine, Celartem::DjVu::MapPoly, Celartem::DjVu::MapOval, and Celartem::DjVu::MapRect.
bool Celartem::DjVu::MapArea::borderAlwaysVisible |
Determines whether the border is always shown or not.
If the value is true
, the border will be always visible; otherwise, false
, the border will be shown only when the mouse cursor is over the maparea.
It cannot be used with poly
and line
maparea.
Applicable for rect
, oval
, poly
, text
BorderType Celartem::DjVu::MapArea::borderType |
Color Celartem::DjVu::MapArea::lineColor |
The color of the border/line.
With line
(MapLine), it actually a color of line.
Applicable for rect
, oval
, poly
, line
, text
size_t Celartem::DjVu::MapArea::lineWidth |
Link Celartem::DjVu::MapArea::link |
Link to another resource.
String Celartem::DjVu::MapArea::target |
The link target.
The target specifies where the link URL is loaded. It is same to target
on HTML's href
. The following is the wel-known targets:
_blank
Load the link in a new blank window._self
Load the link into the plugin window._top
Load the link into the top-level frame.Applicable for rect
, oval
, poly
, line
, text
String Celartem::DjVu::MapArea::text |
The text of the link.
It will be shown in tool tip window (a.k.a. hint). With the text
maparea type, it will also shown in text area.
Applicable for rect
, oval
, poly
, line
, text