This method returns a bounding box. Points outside the box are excluded from the display.
HRESULT GetBoundingBox(
[out] VARIANT* MinX,
[out] VARIANT* MinH,
[out] VARIANT* MinY,
[out] VARIANT* MaxX,
[out] VARIANT* MaxH,
[out] VARIANT* MaxY)
Parameters:
MinX – The smallest value on the X axis that the box includes. Defined as distance, in meters, from the center point of the model.
MinH – The smallest value on the altitude axis that the box includes. Defined as distance, in meters, from the center point of the model.
MinY – The smallest value on the Y axis that the box includes. Defined as distance, in meters, from the center point of the model.
MaxX – The biggest value on the X axis that the box includes. Defined as distance, in meters, from the center point of the model.
MaxH – The biggest value on the altitude axis that the box includes. Defined as distance, in meters, from the center point of the model.
MaxY – The biggest value on the Y axis that the box includes. Defined as distance, in meters, from the center point of the model.
Return Values:
The return value obtained from the returned HRESULT is one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |
TE_E_TEOBJECT_NOLONGEREXIST |
The object you are trying to access no longer exists. This may have occurred because, while keeping an interface to the object, the user deleted it from TerraExplorer (via the TE user interface). Without the object, the interface cannot be used. Therefore, you should release the interface. |
TE_E_INTERNAL |
TerraExplorer was unable to create the object. To get more information about this error use the IErrorInfo Interface. |