Home | Hierarchy | Members | Alphabetical | Related Pages |
#include <geoelevationgrid.h>
Inherits Node.
Inheritance diagram for GeoElevationGrid:
Public Member Functions | |
GeoElevationGrid (const char *name="") | |
virtual | ~GeoElevationGrid () |
virtual unsigned int | nbFields () const |
virtual FieldHandle | field (const std::string &n) |
virtual FieldHandle | field (const unsigned int i) |
virtual bool | isSetToDefaultValue (const unsigned int i) const |
virtual unsigned int | nbEventsIn () const |
virtual EventInHandle | eventIn (const std::string &n) |
virtual EventInHandle | eventIn (const unsigned int i) |
virtual unsigned int | nbEventsOut () const |
virtual EventOutHandle | eventOut (const std::string &n) |
virtual EventOutHandle | eventOut (const unsigned int i) |
const char * | typeName () const |
virtual Node * | duplicate () const |
virtual Node * | duplicate (std::map< const Node *, Node * > &) const |
Public Attributes | |
Exposed Fields | |
A field that is capable of receiving events via an eventIn to change its value(s), and generating events via an eventOut when its value(s) change. | |
SFNode | color |
SFNode | normal |
SFNode | texCoord |
Fields | |
A property or attribute of a node. Each node type has a fixed set of fields. Fields may contain various kinds of data and one or many values. Each field has a default value. | |
SFBool | ccw |
SFBool | colorPerVertex |
SFFloat | creaseAngle |
SFNode | geoOrigin |
MFString | geoSystem |
SFString | geoGridOrigin |
MFFloat | height |
SFBool | normalPerVertex |
SFBool | solid |
SFInt32 | xDimension |
SFString | xSpacing |
SFFloat | yScale |
SFInt32 | zDimension |
SFString | zSpacing |
Events In | |
EventIn< MFFloat > | set_height |
EventIn< SFFloat > | set_yScale |
EventIn< SFNode > | set_color |
EventIn< SFNode > | set_normal |
EventIn< SFNode > | set_texCoord |
Events Out | |
EventOut< SFNode > | color_changed |
EventOut< SFNode > | normal_changed |
EventOut< SFNode > | texCoord_changed |
The GeoElevationGrid node specifies a uniform grid of elevation values within some spatial reference frame. These are then transparently transformed into a geocentric, curved-earth representation. For example, this would allow a geographer to create a height field where all coordinates are specified in terms of latitude, longitude, and elevation.
The fields color, colorPerVertex, texCoord, normal, and normalPerVertex all have the same meaning as they do for a standard VRML ElevationGrid.
The ccw, solid, and creaseAngle fields are described in 4.6.3, Shapes and geometry.
The geoOrigin field is used to specify a local coordinate frame for extended precision as described in 4.15.5 Dealing with high-precision coordinates.
The geoSystem field is used to define the spatial reference frame and is described in 4.15.3, Encoding a spatial reference frame.
The geoGridOrigin field specifies the geospatial coordinate for the south-west corner (bottom-left) of the dataset. This value should be given in the format described in 4.15.4, Encoding geospatial coordinates.
The height array contains xDimension * zDimension floating point values that represent elevation above the ellipsoid or the geoid, as appropriate. These values are given in row-major order from west to east, south to north. When the geoSystem is GD, xSpacing refers to the number of degrees of longitude between adjacent height values and zSpacing refers to the number of degrees of latitude between vertical height values. When the geoSystem is UTM, xSpacing refers to the number of eastings (metres) between adjacent height values and zSpacing refers to the number of northings (metres) between vertical height values. (Hint: if xDimension = n and the grid spans d units horizontally, the xSpacing value should be set to d / (n-1) ). An eventIn called set_height is provided to allow the height array to be modified dynamically, for example, to support deformations or morphing of terrain surfaces.
The yScale value can be used to produce a vertical exaggeration of the data when it is displayed. By default, this value is 1.0 (no exaggeration). If this value is set to a value greater than 1.0, all heights will appear larger than they actually are. This can be useful for emphasizing elevation change, but the images produced will not represent the true elevation unless yScale is 1.0. An eventIn called set_yScale is provided to allow the vertical exaggeration factor to be altered dynamically.
|
Construct a node with all its fields set to default value, which is equivalent to the code below: ccw = true; colorPerVertex = true; creaseAngle = 0; geoGridOrigin = string("0 0 0"); normalPerVertex = true; solid = true; xDimension = 0; xSpacing = string("1.0"); yScale = 1; zDimension = 0; zSpacing = string("1.0"); |
|
Virtual destructor, does nothing |
|
Implements Node. |
|
Returns a deep copy of this node, that is a fully independant node with all children (if any) also copied. This is mainly useful for instanciating protos. Implements Node. |
|
Return a handle on the
This function is useful, with nbEventsIn() if you want to traverse all events in of a Node. Implements Node. |
|
Return a handle on the event in named
Implements Node. |
|
Return a handle on the
Implements Node. |
|
Return a handle on the event out named
Implements Node. |
|
Return a handle on the
Implements Node. |
|
Return a handle on the field named
Implements Node. |
|
Implements Node. |
|
Returns the number of events in for this node type. Implements Node. |
|
Returns the number of events out for this node type. Implements Node. |
|
Returns the number of fields (exposed or not) for this node type. Implements Node. |
|
Returns Implements Node. |
|
See Detailed Description for meaning of this field. Default value is set to ccw = true; |
|
See Detailed Description for meaning of this field. Default value is set to SFNode default value |
|
Changed event associated to exposedField color |
|
See Detailed Description for meaning of this field. Default value is set to colorPerVertex = true; |
|
See Detailed Description for meaning of this field. Default value is set to creaseAngle = 0; |
|
See Detailed Description for meaning of this field. Default value is set to geoGridOrigin = string("0 0 0"); |
|
See Detailed Description for meaning of this field. Default value is set to SFNode default value |
|
See Detailed Description for meaning of this field. Default value is set to |
|
See Detailed Description for meaning of this field. Default value is set to MFFloat default value |
|
See Detailed Description for meaning of this field. Default value is set to SFNode default value |
|
Changed event associated to exposedField normal |
|
See Detailed Description for meaning of this field. Default value is set to normalPerVertex = true; |
|
Set event associated to exposedField color |
|
See Detailed Description for meaning of this event. |
|
Set event associated to exposedField normal |
|
Set event associated to exposedField texCoord |
|
See Detailed Description for meaning of this event. |
|
See Detailed Description for meaning of this field. Default value is set to solid = true; |
|
See Detailed Description for meaning of this field. Default value is set to SFNode default value |
|
Changed event associated to exposedField texCoord |
|
See Detailed Description for meaning of this field. Default value is set to xDimension = 0; |
|
See Detailed Description for meaning of this field. Default value is set to xSpacing = string("1.0"); |
|
See Detailed Description for meaning of this field. Default value is set to yScale = 1; |
|
See Detailed Description for meaning of this field. Default value is set to zDimension = 0; |
|
See Detailed Description for meaning of this field. Default value is set to zSpacing = string("1.0"); |
Generated on 24 Feb 2005 with version 1.3.9.1. |