#include <c4d_basedraw.h>
Contains useful data for drawing into a BaseDraw view. Passed by the framework to methods that need it.
Public Member Functions | |
| BaseDocument * | GetDocument (void) | 
| BaseTag * | GetActiveTag (void) | 
| const Matrix & | GetMg (void) | 
| void | SetMg (const Matrix &mg) | 
| BaseContainer | GetDisplay (void) | 
| void | SetDisplay (BaseContainer *bc) | 
| DRAWFLAGS | GetViewSchedulerFlags () const | 
| Bool | IsActive () const | 
| Bool | IsHighlight () const | 
Static Public Member Functions | |
| static BaseDrawHelp * | Alloc (BaseDraw *bd, BaseDocument *doc) | 
| static void | Free (BaseDrawHelp *&p) | 
Private Member Functions | |
| BaseDrawHelp () | |
| ~BaseDrawHelp () | |
      
  | 
  private | 
Constructor.
      
  | 
  private | 
Destructor.
      
  | 
  static | 
Allocates a BaseDrawHelp. Destroy the allocated BaseDrawHelp with Free(). Use AutoAlloc to automate the allocation and destruction based on scope.
| [in] | bd | The BaseDraw the BaseDrawHelp is assigned to. | 
| [in] | doc | The document of the BaseDraw. | 
      
  | 
  static | 
Destructs BaseDrawHelp instances allocated with Alloc(). Use AutoAlloc to automate the allocation and destruction based on scope.
| [in,out] | p | The BaseDrawHelp to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. | 
| BaseDocument* GetDocument | ( | void | ) | 
Gets the relevant document for the current draw operation, i.e. the currently active document.
| BaseTag* GetActiveTag | ( | void | ) | 
Gets the active tag, or nullptr if no tag is active. (Similar to calling GetDocument()->GetActiveTag() but more efficient since the active tag is cached.)
| const Matrix& GetMg | ( | void | ) | 
Gets the global matrix of the object to be drawn. (Similar to op->GetMg() but more efficient since the matrix is cached.)
| void SetMg | ( | const Matrix & | mg | ) | 
Sets the matrix returned by GetMg().
| [in] | mg | The new global matrix of the object to be drawn. | 
| BaseContainer GetDisplay | ( | void | ) | 
Gets a container with the display mode for the object to be drawn. See Tdisplay.h for values.
| void SetDisplay | ( | BaseContainer * | bc | ) | 
Sets the display mode for the object to be drawn. See Tdisplay.h for values.
| [in] | bc | The new display mode container. | 
| DRAWFLAGS GetViewSchedulerFlags | ( | ) | const | 
Gets the flags which have been passed to DrawViews().
| Bool IsActive | ( | ) | const | 
Checks if the current object is active.
| Bool IsHighlight | ( | ) | const | 
Checks if the current object is highlighted (i.e. when the user has moved the mouse over it).