OrthographicView Class Reference

A two-dimensional orthogonal view. More...

#include <OrthographicView.h>

Inheritance diagram for OrthographicView:

Inheritance graph

List of all members.

Public Member Functions

virtual void lockAspectRatio (bool bLock)=0
virtual bool isAspectRatioLocked () const =0
virtual LocationType getPixelSize () const =0

Static Public Member Functions

static const std::string & signalDisplayAreaChanged ()

Protected Member Functions

virtual ~OrthographicView ()


Detailed Description

A two-dimensional orthogonal view.

The orthographic view uses an orthonogal projection to draw its contents in two dimensions. The data can be stretched or skewed to fit a desired display area. The aspect ratio of the data is not preserved by default, but can be made to do so by calling lockAspectRatio().

This subclass of Subject will notify upon the following conditions:

See also:
View, PerspectiveView

Definition at line 30 of file OrthographicView.h.


Constructor & Destructor Documentation

virtual OrthographicView::~OrthographicView (  )  [protected, virtual]

This should be destroyed by calling DesktopServices::deleteView.

Definition at line 78 of file OrthographicView.h.


Member Function Documentation

static const std::string& OrthographicView::signalDisplayAreaChanged (  )  [static]

Emitted when the viewable area changes.

Definition at line 38 of file OrthographicView.h.

virtual void OrthographicView::lockAspectRatio ( bool  bLock  )  [pure virtual]

Locks the aspect ratio of the view.

This method toggles a lock of the view aspect ratio. When locked, the values in the X dimension are displayed equally to the values in the Y dimension. No distortion will occur when the viewport is resized.

Parameters:
bLock Set this value to TRUE to lock the aspect ratio. Set this value to FALSE to allow the view extents adjust freely with the view size.

virtual bool OrthographicView::isAspectRatioLocked (  )  const [pure virtual]

Queries whether the aspect ratio of the view is locked.

Returns:
TRUE if the aspect ratio is locked, otherwise FALSE.
See also:
lockAspectRatio()

virtual LocationType OrthographicView::getPixelSize (  )  const [pure virtual]

Returns the number of screen pixels that covers one data pixel.

Returns:
The number of screen pixels covering one data pixel. The x-value of the LocationType represents the ratio of screen pixels to data pixels in the x-dimension, and the y-value of the LocationType represents the ratio of screen pixels to data pixels in the y-dimension.


Software Development Kit - Opticks 4.9.0 Build 16218