FDO .NET API Reference Feature Data Objects
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

OSGeo::FDO::Geometry::DirectPositionImpl Class Reference

Inherits OSGeo::FDO::Runtime::Disposable, and OSGeo::FDO::Geometry::OSGeo::FDO::Geometry::IDirectPosition.

Inheritance diagram for OSGeo::FDO::Geometry::DirectPositionImpl:

[legend]
List of all members.

Detailed Description

The DirectPositionImpl class is a default implementation of IDirectPosition. DirectPositionImpl implements accessors from IDirectPosition, matching mutators, and simple data members. Assignment and exact equality operators are also provided.


Public Member Functions

 DirectPositionImpl (System::IntPtr unmanaged, System::Boolean autoDelete)
 Constructs an Position based on an unmanaged instance of the object.
 DirectPositionImpl (OSGeo::FDO::Geometry::IDirectPosition *position)
 Constructs a copy of a DirectPositionImpl.
 DirectPositionImpl (DirectPositionImpl *position)
 Constructs a copy of a DirectPositionImpl.
 DirectPositionImpl (System::Double coordinateX, System::Double coordinateY, System::Double coordinateZ, System::Double coordinateM)
 Constructs a 4D DirectPositionImpl object from X, Y, Z and M ordinates.
 DirectPositionImpl (System::Double coordinateX, System::Double coordinateY, System::Double coordinateZ)
 Constructs a 3D DirectPositionImpl object from X, Y and Z ordinates.
 DirectPositionImpl (System::Double coordinateX, System::Double coordinateY)
 Constructs a 2D DirectPositionImpl object from X and Y ordinates.
 DirectPositionImpl ()
 Constructs a default instance of a DirectPositionImpl object.
System::Boolean Equals (System::Object *obj)
 Equality function for FdoDirectPositionImpl.
__property System::Int32 get_Dimensionality ()
 Gets the dimensionality of ordinates in this position.
__property System::Double get_M ()
 Gets the M ordinate.
__property System::Double get_X ()
 Gets the X ordinate.
__property System::Double get_Y ()
 Gets the Y ordinate.
__property System::Double get_Z ()
 Gets the Z ordinate.
System::Int32 GetHashCode ()
 DOXYGEN-IGNORE
__property System::Void set_Dimensionality (System::Int32 value)
 Sets the dimensionality.
__property System::Void set_M (System::Double value)
 Sets the M ordinate.
__property System::Void set_X (System::Double value)
 Sets the X ordinate.
__property System::Void set_Y (System::Double value)
 Sets the Y ordinate.
__property System::Void set_Z (System::Double value)
 Sets the Z ordinate.

Static Public Member Functions

System::Void op_Assign (DirectPositionImpl *left, IDirectPosition *right)
 Assignment function for DirectPositionImpl from a IDirectPosition, using public methods.
System::Void op_Assign (DirectPositionImpl *left, DirectPositionImpl *right)
 Assignment function for DirectPositionImpl.
System::Boolean op_Equality (DirectPositionImpl *left, DirectPositionImpl *right)
 Equality function for DirectPositionImpl.
System::Boolean op_Inequality (DirectPositionImpl *left, DirectPositionImpl *right)
 InEquality function for DirectPositionImpl.

Protected Member Functions

System::Void ReleaseUnmanagedObject ()
 DOXYGEN-IGNORE

Constructor & Destructor Documentation

OSGeo::FDO::Geometry::DirectPositionImpl::DirectPositionImpl  ) 
 

Constructs a default instance of a DirectPositionImpl object.

Remarks:
Ordinate values default to System::Double::NaN. Dimensionality defaults to Dimensionality_XY.

OSGeo::FDO::Geometry::DirectPositionImpl::DirectPositionImpl System::Double  coordinateX,
System::Double  coordinateY
 

Constructs a 2D DirectPositionImpl object from X and Y ordinates.

Remarks:
Z and M ordinate values default to System::Double::NaN. Dimensionality is set to Dimensionality_XY.
Parameters:
coordinateX Input X ordinate value
coordinateY Input Y ordinate value

OSGeo::FDO::Geometry::DirectPositionImpl::DirectPositionImpl System::Double  coordinateX,
System::Double  coordinateY,
System::Double  coordinateZ
 

Constructs a 3D DirectPositionImpl object from X, Y and Z ordinates.

Remarks:
M ordinate value defaults to System::Double::NaN. Dimensionality is set to Dimensionality_XYZ.
Parameters:
coordinateX Input X ordinate value
coordinateY Input Y ordinate value
coordinateZ Input Z ordinate value

OSGeo::FDO::Geometry::DirectPositionImpl::DirectPositionImpl System::Double  coordinateX,
System::Double  coordinateY,
System::Double  coordinateZ,
System::Double  coordinateM
 

Constructs a 4D DirectPositionImpl object from X, Y, Z and M ordinates.

Remarks:
Dimensionality is set to Dimensionality_XYZ|Dimensionality_M.
Parameters:
coordinateX Input X ordinate value
coordinateY Input Y ordinate value
coordinateZ Input Z ordinate value
coordinateM Input M ordinate value

OSGeo::FDO::Geometry::DirectPositionImpl::DirectPositionImpl DirectPositionImpl position  ) 
 

Constructs a copy of a DirectPositionImpl.

Parameters:
position Input position to copy

OSGeo::FDO::Geometry::DirectPositionImpl::DirectPositionImpl OSGeo::FDO::Geometry::IDirectPosition position  ) 
 

Constructs a copy of a DirectPositionImpl.

Remarks:
Copies position data using only public methods of IDirectPosition, thus supporting conversion from any implementation of the interface.
Parameters:
position Input position to copy

OSGeo::FDO::Geometry::DirectPositionImpl::DirectPositionImpl System::IntPtr  unmanaged,
System::Boolean  autoDelete
 

Constructs an Position based on an unmanaged instance of the object.

Parameters:
unmanaged Input A Pointer to the unmanaged object.
autoDelete Input Indicates if the constructed object should be automatically deleted once it no longer referenced.

Member Function Documentation

System::Boolean OSGeo::FDO::Geometry::DirectPositionImpl::Equals System::Object *  obj  )  [virtual]
 

Equality function for FdoDirectPositionImpl.

Parameters:
obj Input position for comparison (right-hand-side of equation)
Returns:
Returns true if all ordinates and dimensionality are exactly equal.

Reimplemented from OSGeo::FDO::Runtime::Disposable.

__property System::Int32 OSGeo::FDO::Geometry::DirectPositionImpl::get_Dimensionality  ) 
 

Gets the dimensionality of ordinates in this position.

Remarks:
Values are from the Dimensionality enumeration. A return type of "Int32" is used instead of the enumeration, catering to typical use with bit masking.
Returns:
Returns the ordinate dimensionality

__property System::Double OSGeo::FDO::Geometry::DirectPositionImpl::get_M  ) 
 

Gets the M ordinate.

Returns:
Returns the M ordinate; default is numeric_limits::quiet_NaN()

__property System::Double OSGeo::FDO::Geometry::DirectPositionImpl::get_X  ) 
 

Gets the X ordinate.

Returns:
Returns the X ordinate; default is numeric_limits::quiet_NaN()

__property System::Double OSGeo::FDO::Geometry::DirectPositionImpl::get_Y  ) 
 

Gets the Y ordinate.

Returns:
Returns the Y ordinate; default is numeric_limits::quiet_NaN()

__property System::Double OSGeo::FDO::Geometry::DirectPositionImpl::get_Z  ) 
 

Gets the Z ordinate.

Returns:
Returns the Z ordinate; default is numeric_limits::quiet_NaN()

System::Int32 OSGeo::FDO::Geometry::DirectPositionImpl::GetHashCode  ) 
 

DOXYGEN-IGNORE

Reimplemented from OSGeo::FDO::Runtime::Disposable.

System::Void OSGeo::FDO::Geometry::DirectPositionImpl::op_Assign DirectPositionImpl left,
IDirectPosition right
[static]
 

Assignment function for DirectPositionImpl from a IDirectPosition, using public methods.

Parameters:
left Input Source position to copy
right Input Destination position

System::Void OSGeo::FDO::Geometry::DirectPositionImpl::op_Assign DirectPositionImpl left,
DirectPositionImpl right
[static]
 

Assignment function for DirectPositionImpl.

Parameters:
left Input Source position to copy
right Input Destination position

System::Boolean OSGeo::FDO::Geometry::DirectPositionImpl::op_Equality DirectPositionImpl left,
DirectPositionImpl right
[static]
 

Equality function for DirectPositionImpl.

Parameters:
left Input position for comparison (left-hand-side of equation)
right Input position for comparison (right-hand-side of equation)
Returns:
Returns true if all ordinates and dimensionality are exactly equal.

System::Boolean OSGeo::FDO::Geometry::DirectPositionImpl::op_Inequality DirectPositionImpl left,
DirectPositionImpl right
[static]
 

InEquality function for DirectPositionImpl.

Parameters:
right Input envelope for comparison (right-hand-side of equation)
left Input envelope for comparison (left-hand-side of equation)
Returns:
Returns true if all ordinates and dimensionality are not exactly equal.

System::Void OSGeo::FDO::Geometry::DirectPositionImpl::ReleaseUnmanagedObject  )  [protected, virtual]
 

DOXYGEN-IGNORE

Reimplemented from OSGeo::FDO::Runtime::Disposable.

__property System::Void OSGeo::FDO::Geometry::DirectPositionImpl::set_Dimensionality System::Int32  value  ) 
 

Sets the dimensionality.

Remarks:
Use values (including bitwise combinations) from the Dimensionality enumeration.
Parameters:
value Input dimensionality value
Returns:
Returns nothing

__property System::Void OSGeo::FDO::Geometry::DirectPositionImpl::set_M System::Double  value  ) 
 

Sets the M ordinate.

Parameters:
value Input M ordinate value
Returns:
Returns nothing

__property System::Void OSGeo::FDO::Geometry::DirectPositionImpl::set_X System::Double  value  ) 
 

Sets the X ordinate.

Parameters:
value Input X ordinate value
Returns:
Returns nothing

__property System::Void OSGeo::FDO::Geometry::DirectPositionImpl::set_Y System::Double  value  ) 
 

Sets the Y ordinate.

Parameters:
value Input Y ordinate value
Returns:
Returns nothing

__property System::Void OSGeo::FDO::Geometry::DirectPositionImpl::set_Z System::Double  value  ) 
 

Sets the Z ordinate.

Parameters:
value Input Z ordinate value
Returns:
Returns nothing

Comments or suggestions? Send us feedback.