rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Charts Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

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

List of all members.

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.
Orientation getOrientation () const
 Returns the orientation of the Cartesian system of coordinates.
void setOrientation (Orientation orientation)
 Sets the orientation of the Cartesian system of coordinates.

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:
orientation The 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:
orientation The new orientation of the Cartesian system of coordinates.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, 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.