Celartem::DjVu::MapText Class Reference

#include <djv_mapareas.h>

Inheritance diagram for Celartem::DjVu::MapText:

Inheritance graph
[legend]

List of all members.

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< MapAreaduplicate () const

Static Public Member Functions

static AutoPtr< MapTextcreate ()

Public Attributes

Rect rect
bool pushpin
Color textColor
Color bgColor


Detailed Description

Represents a text (matText) maparea instance.

Definition at line 510 of file djv_mapareas.h.


Member Function Documentation

static AutoPtr<MapText> Celartem::DjVu::MapText::create (  )  [inline, static]

Initialize new MapText instance.

Definition at line 516 of file djv_mapareas.h.

virtual MapAreaType Celartem::DjVu::MapText::getType (  )  const [inline, virtual]

Gets the type of the shape.

Returns:
One of MapAreaType enumeration values.

Implements Celartem::DjVu::MapArea.

Definition at line 545 of file djv_mapareas.h.

virtual Rect Celartem::DjVu::MapText::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.

Returns:
A Rect instance.

Implements Celartem::DjVu::MapArea.

Definition at line 546 of file djv_mapareas.h.

virtual bool Celartem::DjVu::MapText::isPointInsideArea ( const Point inPoint  )  const [inline, virtual]

Determines whether the specified point is inside the maparea or not.

Parameters:
inPoint A point to verify.
Returns:
true if the point is inside the maparea.

Implements Celartem::DjVu::MapArea.

Definition at line 548 of file djv_mapareas.h.

virtual size_t Celartem::DjVu::MapText::isPointOnLine ( const Point inPoint,
size_t  inRadius = 1 
) const [virtual]

Determines whether the specified point is on the border (line) or not.

Parameters:
inPoint A point to verify.
inRadius The points within the area defined by inRadius is determined as on-line.
Returns:
0 if the point is not on-line. 1 indicates the point is on left-top to left-bottom line. 2 indicates the point is on left-top to right-top line. 3 indicates the point is on right-top to right-bottom line. 4 indicates the point is on left-bottom to right-bottom line.

Implements Celartem::DjVu::MapArea.

virtual String Celartem::DjVu::MapText::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.

Parameters:
inPageInfo The dimensions and rotation status of the page is used during encoding the ANT* string.
inCurrentRotation The current rotation.
Returns:
ANT* encoded representation of this maparea.

Implements Celartem::DjVu::MapArea.

virtual AutoPtr<MapArea> Celartem::DjVu::MapText::duplicate (  )  const [virtual]

Clone this instance.

Returns:
Pointer to the newly created instance.

Implements Celartem::DjVu::MapArea.


Member Data Documentation

Rect Celartem::DjVu::MapText::rect

The area of this MapText instance.

Definition at line 524 of file djv_mapareas.h.

Referenced by getRect(), and isPointInsideArea().

bool Celartem::DjVu::MapText::pushpin

Whether it is a pushpin (hidable) or not.

Definition at line 529 of file djv_mapareas.h.

Color Celartem::DjVu::MapText::textColor

The color of the text.

Definition at line 534 of file djv_mapareas.h.

Color Celartem::DjVu::MapText::bgColor

The background color (a.k.a. hilight) of this MapText 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.

Definition at line 543 of file djv_mapareas.h.


The documentation for this class was generated from the following file:
This document is automatically generated using doxygen 1.5.4 at Fri Jun 27 18:23:28 2008.