c4d_basedocument.h File Reference

Classes

class  BaseSceneHook
 
class  MultipassObject
 
class  RenderData
 
class  LayerObject
 
struct  LayerData
 
struct  PickSessionDataStruct
 
class  BaseDocument
 
class  Hierarchy
 
class  PriorityList
 

Namespaces

 maxon
 
 cinema
 

Macros

#define BdCall(fnc)
 
#define SELECTION_NEW
 
#define SELECTION_ADD
 
#define SELECTION_SUB
 
#define PICKSESSION_FLAG_CANCELED
 
#define BASEDOCUMENT_PREVIEWSCENE_MARKER
 

Typedefs

typedef void(* PickSessionCallBack) (Int32 flags, const PickSessionDataStruct *psd)
 
using ProgressDelegate = maxon::Delegate< Bool(Float percent)>
 

Enumerations

enum  {
  Mcamera ,
  Mobject ,
  Mtexture ,
  Mtextureaxis ,
  Mpoints ,
  Medges ,
  Mpolygons ,
  Manimation ,
  Mkinematic ,
  Mmodel ,
  Mpaint ,
  Muvpoints ,
  Muvpolygons ,
  Mpolyedgepoint ,
  Medgepoint ,
  Mworkplane ,
  M2dtracks ,
  Muvedges ,
  Muvon ,
  Mdrag
}
 

Functions

BaseDocument * GetActiveDocument ()
 
BaseDocument * GetFirstDocument ()
 
Bool LoadFile (const Filename &name, Bool allowAsync)
 
void InsertBaseDocument (BaseDocument *doc)
 
void SetActiveDocument (BaseDocument *doc)
 
Bool CloseAllDocuments ()
 
void KillDocument (BaseDocument *&doc)
 
BaseDocument * LoadDocument (const Filename &name, SCENEFILTER loadflags, BaseThread *thread, maxon::String *errorString=nullptr, const ProgressDelegate &progressDelegate=ProgressDelegate())
 
Bool MergeDocument (BaseDocument *doc, const Filename &name, SCENEFILTER loadflags, BaseThread *thread, maxon::String *errorString=nullptr, const ProgressDelegate &progressDelegate=ProgressDelegate())
 
Bool SaveDocument (BaseDocument *doc, const Filename &name, SAVEDOCUMENTFLAGS saveflags, Int32 format)
 
BaseDocument * IsolateObjects (BaseDocument *doc, const AtomArray &t_objects)
 
RENDERRESULT RenderDocument (BaseDocument *doc, const BaseContainer &rdata, ProgressHook *prog, void *private_data, BaseBitmap *bmp, RENDERFLAGS renderflags, BaseThread *th, WriteProgressHook *wprog=nullptr, void *data=nullptr)
 
Bool SaveProject (BaseDocument *doc, SAVEPROJECT flags, Filename targetPath, maxon::BaseArray< AssetEntry > *assets=nullptr, maxon::BaseArray< AssetEntry > *missingAssets=nullptr)
 
GETALLASSETSRESULT GetAllAssets (BaseDocument *doc, Bool allowDialogs, maxon::BaseArray< AssetEntry > &assets, Filename &lastPath, ASSETDATA_FLAG flags=ASSETDATA_FLAG::NONE)
 
Bool InteractiveModeling_Rewind (BaseDocument *doc)
 
Bool InteractiveModeling_Restart (BaseDocument *doc)
 
void RunAnimation (BaseDocument *doc, Bool forward, Bool stop)
 
void SetDocumentTime (BaseDocument *doc, const BaseTime &time)
 
Bool StopExternalRenderer ()
 

Macro Definition Documentation

◆ BdCall

#define BdCall (   fnc)

◆ PICKSESSION_FLAG_CANCELED

#define PICKSESSION_FLAG_CANCELED

Pick session was canceled.

◆ BASEDOCUMENT_PREVIEWSCENE_MARKER

#define BASEDOCUMENT_PREVIEWSCENE_MARKER

doc->GetDataInstanceRef().GetBool(BASEDOCUMENT_PREVIEWSCENE_MARKER) returns if the scene is a material preview scene