stlab.adobe.com Adobe Systems Incorporated

An intrinsic geometry class for objects with a graphical representation. More...

#include <adobe/extents.hpp>

List of all members.

Classes

class  slice_t
 A class containing element geometry for a single orientation. More...

Public Member Functions

int & height ()
const int & height () const
slice_thorizontal ()
const slice_thorizontal () const
slice_tvertical ()
const slice_tvertical () const
int & width ()
const int & width () const

Public Attributes

boost::array< slice_t, 2 > slice_m

Friends

bool operator== (const extents_t &x, const extents_t &y)

Detailed Description

extents_t is an equality comparable class for storing intrinsic geometry about a graphical element. Each extents_t is comprised of two slices. A slice stores intrinsic geometry about a graphical element for in a single direction, either vertically or horizontally.

Model Of:
Rationale:
extents_t is intended to describe only the properties of a graphical element which it retains intrinsically. Properties that involve an element as it relates to another element (like position) should not be described here. This is intended to separate the notions of intrinsic versus extrinsic values. This seems strange at first, but is justified when considering how to make a copy of an element's geometry: the copy will not have the same relationships as the original, so extrinsic values cannot be copied, nor can they be set to default values because there is no relationship to which they relate. Any extrinsic value in that case is equally meaningless.
Todo:
(fbrereto) We need a better name than extents_t

Definition at line 75 of file extents.hpp.


Member Function Documentation

long & height (  )
Returns:
a reference to length_m in the vertical slice.

Definition at line 101 of file extents.hpp.

const long & height (  ) const
Returns:
a reference to length_m in the vertical slice.

Definition at line 104 of file extents.hpp.

slice_t& horizontal (  )

Definition at line 96 of file extents.hpp.

const slice_t& horizontal (  ) const

Definition at line 99 of file extents.hpp.

slice_t& vertical (  )

Definition at line 95 of file extents.hpp.

const slice_t& vertical (  ) const

Definition at line 98 of file extents.hpp.

long & width (  )
Returns:
a reference to length_m in the horizontal slice.

Definition at line 102 of file extents.hpp.

const long & width (  ) const
Returns:
a reference to length_m in the horizontal slice.

Definition at line 105 of file extents.hpp.


Friends And Related Function Documentation

bool operator== ( const extents_t x,
const extents_t y 
) [friend]

Member Data Documentation

boost::array< adobe::extents_t::slice_t, 2 > slice_m

The two slices that comprise this extents.

Definition at line 93 of file extents.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google