rwlogo

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Types | Public Member Functions
IlvCartesianProjector Class Reference

Class for projection of data expressed in a Cartesian system of coordinates. More...

#include <ilviews/charts/common.h>

Inheritance diagram for IlvCartesianProjector:
IlvAbstractProjector

Public Types

enum  Orientation {
  IlvXRightYTop, IlvXRightYBottom, IlvXTopYRight, IlvXBottomYRight,
  IlvXLeftYTop, IlvXLeftYBottom, IlvXTopYLeft, IlvXBottomYLeft
}
 This enumeration type defines the axis orientation of a Cartesian system of coordinates. More...
 

Public Member Functions

 IlvCartesianProjector (Orientation orientation=IlvXRightYTop)
 Constructor. More...
 
Orientation getOrientation () const
 Returns the orientation of the Cartesian system of coordinates. More...
 
void setOrientation (Orientation orientation)
 Sets the orientation of the Cartesian system of coordinates. More...
 
- Public Member Functions inherited from IlvAbstractProjector
virtual IlvAbstractProjectorcopy () const =0
 Virtual copy constructor. More...
 
void lock ()
 Locks the current IlvAbstractProjector object. More...
 
IlvOutputFilesave (IlvOutputFile &file) const
 Writes a complete description of the current object in a file. More...
 
void unLock ()
 Unlocks the current IlvAbstractProjector object. More...
 
virtual void write (IlvOutputFile &file) const =0
 Writes the attributes of the current object in a file. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from IlvAbstractProjector
static IlvAbstractProjectorLoad (IlvInputFile &file)
 Reads a projector object from a file. More...
 
- Protected Member Functions inherited from IlvAbstractProjector
 IlvAbstractProjector ()
 Constructor. More...
 
 IlvAbstractProjector (const IlvAbstractProjector &projector)
 Constructor. More...
 
 IlvAbstractProjector (IlvInputFile &file)
 Constructor. More...
 

Detailed Description

Class for projection of data expressed in a Cartesian system of coordinates.

Library: ilvcharts

This class is a subclass of IlvAbstractProjector that handles the projection into screen coordinates for data expressed in a Cartesian system of coordinates (x, y). The scales representing such coordinates are rectangular and are displayed orthogonally. The x values are represented by the abscissa scale and the y values are represented by one or several ordinate scales. The orientation of the scales depends on the orientation of the Cartesian system of coordinates. This orientation is returned by the IlvCartesianProjector::getOrientation method.

See Also
IlvAbstractProjector.

Member Enumeration Documentation

This enumeration type defines the axis orientation of a Cartesian system of coordinates.

Enumerator
IlvXRightYTop 

The X axis is horizontal and oriented from left to right, the Y axis is vertical and oriented from bottom to top.

IlvXRightYBottom 

The X axis is horizontal and oriented from left to right, the Y axis is vertical and oriented from top to bottom.

IlvXTopYRight 

The X axis is vertical and oriented from bottom to top, the Y axis is horizontal and oriented from left to right.

IlvXBottomYRight 

The X axis is vertical and oriented from top to bottom, the Y axis is horizontal and oriented from left to right.

IlvXLeftYTop 

The X axis is horizontal and oriented from right to left, the Y axis is vertical and oriented from bottom to top.

IlvXLeftYBottom 

The X axis is horizontal and oriented from right to left, the Y axis is vertical and oriented from top to bottom.

IlvXTopYLeft 

The X axis is vertical and oriented from bottom to top, the Y axis is horizontal and oriented from right to left.

IlvXBottomYLeft 

The X axis is vertical and oriented from top to bottom, the Y axis is horizontal and oriented from right to left.

Constructor & Destructor Documentation

IlvCartesianProjector::IlvCartesianProjector ( Orientation  orientation = IlvXRightYTop)

Constructor.

Initializes a new IlvCartesianProjector object.

Parameters
orientationThe orientation of the Cartesian system of coordinates.

Member Function Documentation

Orientation IlvCartesianProjector::getOrientation ( ) const

Returns the orientation of the Cartesian system of coordinates.

Returns
The orientation of the Cartesian system of coordinates.
See Also
setOrientation.
void IlvCartesianProjector::setOrientation ( Orientation  orientation)

Sets the orientation of the Cartesian system of coordinates.

Parameters
orientationThe new orientation of the Cartesian system of coordinates.

© Copyright 2014, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.