Open Search
    c4d_general.h File Reference

    Classes

    class  ParserCache
     
    class  Parser
     
    struct  SerialInfo
     
    class  Registry
     
    class  LassoSelection
     
    class  DebugTimer
     

    Namespaces

     cinema
     

    Macros

    #define NEWPARSERERROR_BADSTRING
     
    #define NEWPARSERERROR_BADEXECUTION
     
    #define NEWPARSERERROR_MEMORYERROR
     
    #define NEWPARSERERROR_NUMBERERROR
     
    #define UNIT_NONE
     
    #define UNIT_KM
     
    #define UNIT_M
     
    #define UNIT_CM
     
    #define UNIT_MM
     
    #define UNIT_UM
     
    #define UNIT_NM
     
    #define UNIT_MILE
     
    #define UNIT_YARD
     
    #define UNIT_FEET
     
    #define UNIT_INCH
     
    #define ANGLE_DEG
     
    #define ANGLE_RAD
     
    #define COREMSG_CINEMA
     
    #define COREMSG_CINEMA_GETMACHINEFEATURES
     
    #define DRAWPORT_TYPE_AVAILABLE
     
    #define DRAWPORT_EXTENSION_STRING
     
    #define DRAWPORT_SUPPORT_ENHANCED
     
    #define DRAWPORT_RENDERER_NAME
     
    #define DRAWPORT_VERSION_STRING
     
    #define DRAWPORT_VENDOR_NUM
     
    #define DRAWPORT_VENDOR_UNKNOWN
     
    #define DRAWPORT_VENDOR_NVIDIA
     
    #define DRAWPORT_VENDOR_AMD
     
    #define DRAWPORT_VENDOR_INTEL
     
    #define DRAWPORT_VENDOR_APPLE
     
    #define DRAWPORT_VENDOR_NAME
     
    #define DRAWPORT_SHADING_LANGUAGE_VERSION_STRING
     
    #define DRAWPORT_MULTITEXTURE
     
    #define DRAWPORT_MAX_2DTEXTURE_SIZE
     
    #define DRAWPORT_MAX_3DTEXTURE_SIZE
     
    #define DRAWPORT_MAX_VERTEX_ATTRIBS
     
    #define DRAWPORT_MAX_TEX_IMAGE_UNITS_VERTEX
     
    #define DRAWPORT_MAX_TEX_IMAGE_UNITS_FRAGMENT
     
    #define DRAWPORT_DRIVER_VERSION_STRING
     
    #define DRAWPORT_FBO_Z_DEPTH
     
    #define DRAWPORT_FRAMEBUFFER_OBJECT_MULTISAMPLE
     
    #define DRAWPORT_MAX_TEX_IMAGE_UNITS_GEOMETRY
     
    #define DRAWPORT_API_VERSION_INT
     
    #define DRAWPORT_SHADING_LANGUAGE_VERSION_INT
     
    #define DRAWPORT_RENDERBUFFER_MASK
     
    #define DRAWPORT_RENDER_TO_FP16_TEXTURE
     
    #define DRAWPORT_RENDER_TO_FP32_TEXTURE
     
    #define DRAWPORT_STEREO_BUFFER
     
    #define DRAWPORT_DRIVER_OUTDATED
     
    #define DRAWPORT_SUPPORT_PRIMITIVERESTARTINDEX
     
    #define DRAWPORT_SUPPORT_GEOMETRYSHADER
     
    #define DRAWPORT_SUPPORT_OSX_10_7
     
    #define DRAWPORT_MAX_TEX_IMAGE_UNITS_TESS_CONTROL
     
    #define DRAWPORT_MAX_TEX_IMAGE_UNITS_TESS_EVAL
     
    #define DRAWPORT_MAX_TESSELLATION_LEVEL
     
    #define DRAWPORT_API_TYPE
     
    #define DRAWPORT_VRAM_SIZE
     
    #define DRAWPORT_REQUIRED_VERSION_STRING
     
    #define MACHINEINFO_OSTYPE
     
    #define MACHINEINFO_OSVERSION
     
    #define MACHINEINFO_PROCESSORTYPE
     
    #define MACHINEINFO_PROCESSORNAME
     
    #define MACHINEINFO_PROCESSORFEATURES
     
    #define MACHINEINFO_NUMBEROFPROCESSORS
     
    #define MACHINEINFO_MACHINEMODEL
     
    #define MACHINEINFO_COMPUTERNAME
     
    #define MACHINEINFO_USERNAME
     
    #define MACHINEINFO_PROCESSORSPEED_MHZ
     
    #define MACHINEINFO_C4DBUILDID
     
    #define MACHINEINFO_C4DTYPE
     
    #define MACHINEINFO_PROCESSORHTCOUNT
     
    #define MACHINEINFO_PHYSICAL_RAM_SIZE
     
    #define MACHINEINFO_LOADEDPLUGINS
     
    #define C4D_MEMORY_STAT_MEMORY_INUSE
     
    #define C4D_MEMORY_STAT_MEMORY_PEAK
     
    #define C4D_MEMORY_STAT_NO_OF_ALLOCATIONS_TOTAL
     
    #define C4D_MEMORY_STAT_NO_OF_ALLOCATIONS_CURRENT
     
    #define C4D_MEMORY_STAT_EOGL_TEXBUFFER
     
    #define C4D_MEMORY_STAT_EOGL_VERTEXBUFFER
     
    #define C4D_MEMORY_STAT_LOWMEMCNT
     
    #define C4D_MEMORY_STAT_EOGL_VERTEXBUFFER_CNT
     
    #define C4D_MEMORY_STAT_EOGL_TEXTUREBUFFER_CNT
     
    #define C4D_MEMORY_STAT_OPENGL_ALLOCATED
     
    #define C4D_MEMORY_STAT_OPENGL_USED
     
    #define SHORTCUT_PLUGINID
     
    #define SHORTCUT_ADDRESS
     
    #define SHORTCUT_OPTIONMODE
     
    #define CLIPBOARDOWNER_BODYPAINT
     
    #define CLIPBOARDOWNER_PICTUREVIEWER
     

    Typedefs

    typedef maxon::Tuple< maxon::Url, Bool > TexturePathTuple
     
    typedef maxon::BaseArray< TexturePathTuple > TexturePathList
     

    Enumerations

    enum class  MACHINEFEATURESTYPE {
      CURRENT ,
      HARDWARE_OGL
    }
     

    Functions

    maxon::String GeGetUserName ()
     
    VERSIONTYPE GeGetVersionType ()
     
    maxon::Result< void > GetGeneralLicensingInformation (maxon::String &productId, maxon::String &systemId, maxon::String &userId, maxon::String &licenseId, maxon::String &userName)
     
    maxon::Result< maxon::StringExportLicenses ()
     
    maxon::Result< void > AddLicenseItem (const maxon::InternedId &licenseItemId, Float versionNumber, Bool checkOnly, maxon::CustomLicenseItemDelegate &&licenseUpdateCallback)
     
    maxon::Bool CheckLicenseFeature (const maxon::InternedId &featureId)
     
    Bool HasFullFeatureSet ()
     
    Bool IsNet ()
     
    Bool IsServer ()
     
    Bool IsClient ()
     
    void GeShowMouse (Int32 v)
     
    Bool GeGetScreenDimensions (Int32 x, Int32 y, Bool whole_screen, Int32 *sx1, Int32 *sy1, Int32 *sx2, Int32 *sy2)
     
    Int32 GeGetTimer ()
     
    Float64 GeGetMilliSeconds ()
     
    String GeGetLineEnd ()
     
    Int32 GeGetDefaultFPS ()
     
    UInt32 GeGetCinemaInfo (CINEMAINFO info)
     
    GEMB_R GeOutString (const maxon::String &str, GEMB flags)
     
    OPERATINGSYSTEM GeGetCurrentOS ()
     
    BYTEORDER GeGetByteOrder ()
     
    void GeGetGray (Int32 *r, Int32 *g, Int32 *b)
     
    Bool GeChooseColor (Vector *col, Int32 flags)
     
    Bool GeChooseColorAlpha (maxon::ColorA *col, Int32 flags)
     
    Bool GeOpenHTML (const maxon::String &webaddress)
     
    Bool GeChooseFont (BaseContainer *bc)
     
    void GeGetGuiFont (maxon::OSFontDefinition &out)
     
    void GeGetMonoFont (maxon::OSFontDefinition &out)
     
    Bool GeRegisterPlugin (PLUGINTYPE type, Int32 id, const maxon::String &str, void *data, Int32 datasize)
     
    void GePrint (const maxon::String &str)
     
    void GeConsoleOut (const maxon::String &str)
     
    Bool GeGetMovieInfo (const Filename &fn, Int32 *frames, Float *fps)
     
    Bool RenameDialog (String *str)
     
    Int32 GetC4DVersion ()
     
    String GeGetDegreeChar ()
     
    String GeGetPercentChar ()
     
    void SetMousePointer (Int32 l)
     
    Bool ShowBitmap (const Filename &fn)
     
    Bool ShowBitmap (BaseBitmap *bm)
     
    void StopAllThreads ()
     
    void StopDrawViewsThread ()
     
    Bool ShutdownThreads (Bool shutdown)
     
    void SpecialEventAdd (Int32 messageid, UInt p1=0, UInt p2=0)
     
    void EventAdd (EVENT eventflag=EVENT::NONE)
     
    Bool GeSyncMessage (Int32 messageid, Int32 destid=0, UInt p1=0, UInt p2=0)
     
    Bool DrawViews (DRAWFLAGS flags, BaseDraw *bd=nullptr)
     
    Bool SendModelingCommand (Int32 command, ModelingCommandData &data)
     
    maxon::Result< TexturePathList > GetGlobalTexturePaths (const Filename *docPath)
     
    maxon::Result< void > SetGlobalTexturePaths (const TexturePathList &paths)
     
    Bool GenerateTexturePath (const Filename &docpath, const Filename &srcname, const Filename &suggestedfolder, Filename *dstname, NetRenderService *service=nullptr, BaseThread *bt=nullptr)
     
    Bool IsInSearchPath (const Filename &texfilename, const Filename &docpath)
     
    void FlushTexture (const Filename &docpath, const maxon::String &name, const Filename &suggestedfolder)
     
    void FlushUnusedTextures ()
     
    BaseContainer GetWorldContainer ()
     
    BaseContainer * GetWorldContainerInstance ()
     
    void GetAdditionalWorldContainerData (BaseContainer &bc)
     
    maxon::Result< maxon::BaseArray< maxon::Url > > GetRecentDocumentsList (Bool isBodyPaint)
     
    maxon::Id GetActiveNodeSpaceId ()
     
    void SaveWorldPreferences ()
     
    void SetWorldContainer (const BaseContainer &bc)
     
    Vector GetViewColor (Int32 colid, Vector *defaultColor=nullptr)
     
    void SetViewColor (Int32 colid, const Vector &col)
     
    void ErrorStringDialog (CHECKVALUERANGE type, Float x, Float y, CHECKVALUEFORMAT is)
     
    Bool ReadPluginInfo (Int32 pluginid, void *buffer, Int32 size)
     
    Bool WritePluginInfo (Int32 pluginid, void *buffer, Int32 size)
     
    Bool ReadRegInfo (Int32 pluginid, void *buffer, Int32 size)
     
    Bool WriteRegInfo (Int32 pluginid, void *buffer, Int32 size)
     
    BaseContainer * GetWorldPluginData (Int32 id)
     
    Bool SetWorldPluginData (Int32 id, const BaseContainer &bc, Bool add=true)
     
    BaseContainer * GetToolPluginData (BaseDocument *doc, Int32 id)
     
    Bool GeIsActiveToolEnabled ()
     
    ToolPlugin * GetActiveTool ()
     
    Bool GeGetLanguage (Int32 index, maxon::String *extension, maxon::String *name, Bool *default_language)
     
    Filename GeFilterSetSuffix (const Filename &name, Int32 id)
     
    IDENTIFYFILE GeIdentifyFile (const Filename &name, UChar *probe, Int32 probesize, IDENTIFYFILE recognition, BasePlugin **bp)
     
    GeListHead * GetScriptHead (Int32 type)
     
    Int32 GetDynamicScriptID (BaseList2D *bl)
     
    void SetActiveScriptObject (Int32 type)
     
    BaseList2D * CreateNewPythonScript (String &name, const String &body)
     
    BaseList2D * LoadPythonScript (const Filename &fn)
     
    Bool GetCommandLineArgs (C4DPL_CommandLineArgs &args)
     
    String GetObjectName (Int32 type)
     
    String GetTagName (Int32 type)
     
    Int32 GetObjectType (const maxon::String &name)
     
    Int32 GetTagType (const maxon::String &name)
     
    Bool GeRegistryAdd (Int32 sub_id, REGISTRYTYPE main_id, void *data)
     
    Bool GeRegistryRemove (Int32 sub_id, REGISTRYTYPE main_id)
     
    Registry * GeRegistryFind (Int32 sub_id, REGISTRYTYPE main_id)
     
    Registry * GeRegistryGetLast (REGISTRYTYPE main_id)
     
    Registry * GeRegistryGetFirst (REGISTRYTYPE main_id)
     
    Bool GeRegistryGetAutoID (Int32 *id)
     
    Bool GePluginMessage (Int32 id, void *data)
     
    Bool CheckIsRunning (CHECKISRUNNING type)
     
    String GeGetDefaultFilename (Int32 id)
     
    void FindInManager (BaseList2D *bl)
     
    void GeSleep (Int32 milliseconds)
     
    Bool GeIsMainThread ()
     
    Bool GeIsMainThreadAndNoDrawThread ()
     
    void _GeDebugBreak (Int32 line, const Char *file)
     
    void GeDebugOut (const Char *s,...)
     
    void GeDebugOut (const maxon::String &s)
     
    GeData SendCoreMessage (Int32 coreid, const BaseContainer &msg, Int32 eventid=0)
     
    String GetMacModel (const maxon::String &machinemodel)
     
    enum cinema::MACHINEFEATURESTYPE MAXON_ENUM_LIST (MACHINEFEATURESTYPE)
     
    BaseContainer GetMachineFeatures (MACHINEFEATURESTYPE type=MACHINEFEATURESTYPE::HARDWARE_OGL)
     
    Bool GeGetMemoryStat (BaseContainer &stat)
     
    Bool PopupEditText (Int32 screenx, Int32 screeny, Int32 width, Int32 height, const maxon::String &changeme, maxon::Delegate< void(POPUPEDITTEXTCALLBACK, maxon::String &)> func)
     
    void StartEditorRender (Bool active_only, Bool raybrush, Int32 x1, Int32 y1, Int32 x2, Int32 y2, BaseThread *bt, BaseDraw *bd, Bool newthread)
     
    String FormatNumber (const GeData &val, Int32 format, Int32 fps, Bool bUnit=true)
     
    GeData StringToNumber (const maxon::String &text, Int32 format, Int32 fps, const LENGTHUNIT *lengthunit=nullptr)
     
    void CallCommand (Int32 id, Int32 subid=0)
     
    String GetCommandName (Int32 id)
     
    String GetCommandHelp (Int32 id)
     
    Bool IsCommandEnabled (Int32 id)
     
    Bool IsCommandChecked (Int32 id)
     
    Bool GetSystemEnvironmentVariable (const maxon::String &varname, maxon::String &result)
     
    Bool AskForAdministratorPrivileges (const maxon::String &msg, const maxon::String &caption, Bool allowsuperuser, void **token)
     
    void EndAdministratorPrivileges ()
     
    void RestartApplication (const Utf16Char *param=nullptr, Int32 exitcode=0, const Utf16Char **path=nullptr)
     
    void SetExitCode (Int32 exitCode)
     
    void GeUpdateUI ()
     
    VIEWPORTTYPE GeGetActiveViewportType ()
     
    Int32 GetShortcutCount ()
     
    BaseContainer GetShortcut (Int32 index)
     
    Bool AddShortcut (const BaseContainer &bc)
     
    Bool RemoveShortcut (Int32 index)
     
    Bool LoadShortcutSet (const Filename &fn, Bool add)
     
    Bool SaveShortcutSet (const Filename &fn)
     
    Int32 FindShortcutsFromID (Int32 pluginid, Int32 *indexarray, Int32 maxarrayelements)
     
    Int32 FindShortcuts (const BaseContainer &scut, Int32 *idarray, Int32 maxarrayelements)
     
    Bool CheckCommandShortcut (Int32 id, Int32 key, Int32 qual)
     
    void InsertCreateObject (BaseDocument *doc, BaseObject *op, BaseObject *activeobj=nullptr)
     
    void CopyToClipboard (const maxon::String &text)
     
    void CopyToClipboard (BaseBitmap *map, Int32 ownerid)
     
    Bool GetStringFromClipboard (String *txt)
     
    Bool GetBitmapFromClipboard (BaseBitmap *map)
     
    CLIPBOARDTYPE GetClipboardType ()
     
    Int32 GetC4DClipboardOwner ()
     
    const BaseBitmap * GetCursorBitmap (Int32 type, Int32 &hotspotx, Int32 &hotspoty)
     
    Bool CodeEditor_Open (BaseList2D *obj, const maxon::Delegate< GeData(BaseList2D *obj, const BaseContainer &msg)> &callback, const BaseContainer &bc=BaseContainer())
     
    void MinimalViewportSettingsCommand (Int32 type)
     
    Bool IsAnimationRunning (const BaseDocument *document)
     
    Bool IsUVToolMode (const BaseDocument *document)
     
    Int32 GetFormatDepth (Int32 format, Int32 depth)
     

    Variables

     CURRENT
     
     HARDWARE_OGL
     

    Swap/Intel/Motorola Conversions

    void lSwap (void *adr, Int cnt=1)
     
    void wSwap (void *adr, Int cnt=1)
     
    void lIntel (void *adr, Int cnt=1)
     
    void wIntel (void *adr, Int cnt=1)
     
    void lMotor (void *adr, Int cnt=1)
     
    void wMotor (void *adr, Int cnt=1)
     
    void llSwap (void *adr, Int cnt=1)
     
    void llIntel (void *adr, Int cnt=1)
     
    void llMotor (void *adr, Int cnt=1)
     

    Background Handler

    void GeAddBackgroundHandler (BackgroundHandler *handler, void *tdata, Int32 typeclass, Int32 priority)
     
    Bool GeRemoveBackgroundHandler (void *tdata, Int32 typeclass)
     
    Bool GeStopBackgroundThreads (Int32 typeclass, BACKGROUNDHANDLERFLAGS flags, BaseThread *thread)
     
    Bool GeCheckBackgroundThreadsRunning (Int32 typeclass, Bool all)
     

    Status

    void StatusClear ()
     
    void StatusSetSpin ()
     
    void StatusSetBar (Int32 p)
     
    void StatusSetText (const maxon::String &str)
     
    void StatusNetClear ()
     
    void StatusSetNetLoad (STATUSNETSTATE status)
     
    void StatusSetNetBar (Int32 p, const GeData &dat)
     
    void StatusSetNetText (const maxon::String &str)
     

    Variable Documentation

    ◆ CURRENT

    CURRENT

    Get Machine features for the currently active OpenGL type.

    ◆ HARDWARE_OGL

    HARDWARE_OGL

    Get Machine features for Hardware OpenGL.