3ds Max C++ API Reference
IViewEvent Class Referenceabstract

You receive a IViewEvent instance when something dealing with the view has changed: Events received with that class : EventType_View_Transform or EventType_View_Active. More...

#include <NotificationAPI_Events.h>

+ Inheritance diagram for IViewEvent:

Public Member Functions

virtual bool ViewIsACameraOrLightNode () const =0
 Returns true if the active view is a camera or a light node, false if it's a viewport. More...
 
virtual INodeGetViewCameraOrLightNode () const =0
 Returns the INode* of the new active view if it is a camera or a light node, NULL if it's a viewport. More...
 
virtual ViewExpGetView () const =0
 Returns the newly active viewport. The pointer will not normally be null, but could be so in the case of an internal error. More...
 
virtual int GetViewID () const =0
 Returns the 'view undo ID' associated with the active viewport, for internal use. More...
 
- Public Member Functions inherited from IGenericEvent
virtual NotifierType GetNotifierType (void) const =0
 Get the type of notifier: More...
 
virtual size_t GetEventType (void) const =0
 Get the update type. More...
 
virtual void DebugPrintToFile (FILE *f) const =0
 For debugging purpose you may use this to print the event to an existing file stream. More...
 

Protected Member Functions

virtual ~IViewEvent ()
 
- Protected Member Functions inherited from IGenericEvent
virtual ~IGenericEvent ()
 

Detailed Description

You receive a IViewEvent instance when something dealing with the view has changed: Events received with that class : EventType_View_Transform or EventType_View_Active.

Constructor & Destructor Documentation

◆ ~IViewEvent()

virtual ~IViewEvent ( )
inlineprotectedvirtual
318 {};

Member Function Documentation

◆ ViewIsACameraOrLightNode()

virtual bool ViewIsACameraOrLightNode ( ) const
pure virtual

Returns true if the active view is a camera or a light node, false if it's a viewport.

◆ GetViewCameraOrLightNode()

virtual INode* GetViewCameraOrLightNode ( ) const
pure virtual

Returns the INode* of the new active view if it is a camera or a light node, NULL if it's a viewport.

◆ GetView()

virtual ViewExp* GetView ( ) const
pure virtual

Returns the newly active viewport. The pointer will not normally be null, but could be so in the case of an internal error.

◆ GetViewID()

virtual int GetViewID ( ) const
pure virtual

Returns the 'view undo ID' associated with the active viewport, for internal use.