This reference page is linked to from the following overview topics: SDK Change Details.
Extends ViewExp11.
The following code example shows gow to get access to this interface:
ViewExp* vp = ip->GetViewport(hWnd);
ViewExp13* vp13 = NULL;
if (vp != NULL)
vp13 = reinterpret_cast<ViewExp13*>(vp->Execute(ViewExp::kEXECUTE_GET_VIEWEXP_13));
ip->ReleaseViewport(vp);
#include <maxapi.h>

Public Member Functions |
|
| virtual | ~ViewExp13 () |
| Destructor. |
|
| virtual BOOL | GetSingleDefaultLight ()=0 |
| Get whether the viewport uses one default
light, or two. |
|
| virtual void | UpdateLabel ()=0 |
| Updates the viewport label, if the display
mode has changed. |
|
| virtual float | GetZoom ()=0 |
| Get the zoom value of the viewport. |
|
| virtual float | GetHither ()=0 |
| virtual float | GetYon ()=0 |
| virtual DeviceRect | GetRegionDeviceRect ()=0 |
| Returns the viewport region rectangle as a
DeviceRect. |
|
| virtual void | SetRegionDeviceRect (DeviceRect r)=0 |
| Sets the viewport region rectangle as a
DeviceRect. |
|
| virtual DeviceRect | GetBlowupDeviceRect ()=0 |
| Returns the viewport blowup rectangle as a
DeviceRect. |
|
| virtual void | SetBlowupDeviceRect (DeviceRect r)=0 |
| Sets the viewport blowup rectangle as a
DeviceRect. |
|
| virtual DeviceRect | GetSelDeviceRect (TimeValue t)=0 |
| Returns the viewport bounding box of the
current node selection, as a
DeviceRect. |
|
| virtual void | SetEdgedFaces (int md)=0 |
| Sets if drawing edges faces should be turned
on in the viewport. |
|
| virtual int | GetEdgedFaces (void)=0 |
| Gets if drawing edges faces is turned on in
the viewport. |
|
| virtual ~ViewExp13 | ( | ) | [inline, virtual] |
Destructor.
{ }
| virtual BOOL GetSingleDefaultLight | ( | ) | [pure virtual] |
Get whether the viewport uses one default light, or two.
Returns TRUE if the viewport uses one default light, FALSE if two.
| virtual void UpdateLabel | ( | ) | [pure virtual] |
Updates the viewport label, if the display mode has changed.
May be needed when displaying a camera view, and the camera name is changed. Primarily for internal use.
| virtual float GetZoom | ( | ) | [pure virtual] |
| virtual float GetHither | ( | ) | [pure virtual] |
Get the hither clipping value of the viewport.
| virtual float GetYon | ( | ) | [pure virtual] |
Get the yon clipping value of the viewport.
| virtual DeviceRect GetRegionDeviceRect | ( | ) | [pure virtual] |
Returns the viewport region rectangle as a DeviceRect.
Gets the viewport region rectangle, similar to Interface7::GetRegionRect(), but with coordinates in the range [0..1] instead of in pixels.
| virtual void SetRegionDeviceRect | ( | DeviceRect | r | ) | [pure virtual] |
Sets the viewport region rectangle as a DeviceRect.
Sets the viewport region rectangle, similar to Interface7::SetRegionRect(), but with coordinates in the range [0..1] instead of in pixels.
| virtual DeviceRect GetBlowupDeviceRect | ( | ) | [pure virtual] |
Returns the viewport blowup rectangle as a DeviceRect.
Gets the viewport blowup rectangle, similar to Interface7::GetBlowupRect(), but with coordinates in the range [0..1] instead of in pixels.
| virtual void SetBlowupDeviceRect | ( | DeviceRect | r | ) | [pure virtual] |
Sets the viewport blowup rectangle as a DeviceRect.
Sets the viewport blowup rectangle, similar to Interface7::SetBlowupRect(), but with coordinates in the range [0..1] instead of in pixels.
| virtual DeviceRect GetSelDeviceRect | ( | TimeValue | t | ) | [pure virtual] |
Returns the viewport bounding box of the current node selection, as a DeviceRect.
Gets the viewport bounding box rectangle of the selection, at the given slider time, with coordinates in the range [0..1] instead of in pixels .
| virtual void SetEdgedFaces | ( | int | md | ) | [pure virtual] |
Sets if drawing edges faces should be turned on in the viewport.
A non-zero input value turns it on, 0 turns it off.
| virtual int GetEdgedFaces | ( | void | ) | [pure virtual] |
Gets if drawing edges faces is turned on in the viewport.
Returns non-zero if edged faces is on.