Open Search
    PointObject Class Reference

    #include <c4d_pointobject.h>

    Inheritance diagram for PointObject:

    Public Types

    typedef BaseObject SUPER
     
    - Public Types inherited from BaseObject
    typedef BaseList4D SUPER
     
    - Public Types inherited from BaseList4D
    typedef BaseList2D SUPER
     
    - Public Types inherited from BaseList2D
    typedef GeListNode SUPER
     
    - Public Types inherited from GeListNode
    typedef PrivateChunk SUPER
     

    Public Member Functions

    virtual Bool IsInstanceOf (cineware::Int32 id) const
     
    - Public Member Functions inherited from BaseObject
    BaseObjectGetNext ()
     
    BaseObjectGetPred ()
     
    BaseObjectGetUp ()
     
    BaseObjectGetDown ()
     
    BaseObjectGetDownLast ()
     
    virtual BaseList2DGetClone (COPYFLAGS flags, AliasTrans *trans)
     
    Vector GetAbsPos () const
     
    void SetAbsPos (const Vector &v)
     
    Vector GetAbsScale () const
     
    void SetAbsScale (const Vector &v)
     
    Vector GetAbsRot () const
     
    void SetAbsRot (const Vector &v)
     
    Vector GetFrozenPos () const
     
    void SetFrozenPos (const Vector &v)
     
    Vector GetFrozenScale () const
     
    void SetFrozenScale (const Vector &v)
     
    Vector GetFrozenRot () const
     
    void SetFrozenRot (const Vector &v)
     
    Vector GetRelPos () const
     
    void SetRelPos (const Vector &v)
     
    Vector GetRelScale () const
     
    void SetRelScale (const Vector &v)
     
    Vector GetRelRot () const
     
    void SetRelRot (const Vector &v)
     
    const MatrixGetMl () const
     
    void SetMl (const Matrix &m)
     
    Matrix GetFrozenMln () const
     
    Matrix GetRelMln () const
     
    Matrix GetRelMl () const
     
    void SetRelMl (const Matrix &m)
     
    Matrix GetMg ()
     
    void SetMg (const Matrix &m)
     
    Matrix GetMln () const
     
    Matrix GetMgn ()
     
    Matrix GetUpMg ()
     
    void CopyMatrixTo (BaseObject *dest)
     
    void SetRotationOrder (ROTATIONORDER order)
     
    ROTATIONORDER GetRotationOrder () const
     
    void SetQuaternionRotationMode (Bool active)
     
    Bool IsQuaternionRotationMode ()
     
    Bool SynchronizeVectorTrackKeys (Int32 vectorTrackID, BaseTime startRange=BaseTime(-108000, 1), BaseTime endRange=BaseTime(108000, 1))
     
    Bool FindBestEulerAngle (Int32 rotationTrackID, Bool bAdjustTangent, BaseTime startRange=BaseTime(-108000, 1), BaseTime endRange=BaseTime(108000, 1))
     
    Int32 GetEditorMode ()
     
    void SetEditorMode (Int32 mode)
     
    Int32 GetRenderMode ()
     
    void SetRenderMode (Int32 mode)
     
    Bool GetDeformMode ()
     
    void SetDeformMode (Bool mode)
     
    BaseTagGetFirstTag ()
     
    BaseTagGetTag (Int32 type, Int32 nr=0)
     
    BaseTagMakeTag (Int32 type, BaseTag *pred=nullptr)
     
    void InsertTag (BaseTag *tp, BaseTag *pred=nullptr)
     
    void KillTag (Int32 type, Int32 nr=0)
     
    BaseObjectGetCache ()
     
    BaseObjectGetDeformCache ()
     
    void GetColorProperties (ObjectColorProperties *prop)
     
    void SetColorProperties (ObjectColorProperties *prop)
     
    virtual Bool Execute ()
     
    Bool HasChanged ()
     
    - Public Member Functions inherited from BaseList4D
    BaseList4DGetUp ()
     
    BaseList4DGetDown ()
     
    BaseList4DGetDownLast ()
     
    void InsertBefore (BaseList4D *bl)
     
    void InsertAfter (BaseList4D *bl)
     
    void InsertUnder (BaseList4D *bl)
     
    void InsertUnderLast (BaseList4D *bl)
     
    virtual void Remove ()
     
    - Public Member Functions inherited from BaseList2D
     BaseList2D ()
     
    virtual ~BaseList2D ()
     
    BaseList2DGetNext ()
     
    BaseList2DGetPred ()
     
    NodeDataGetNodeData ()
     
    void SetNodeData (NodeData *data)
     
    void SetBit (Int32 mask)
     
    Bool GetBit (Int32 mask)
     
    void DelBit (Int32 mask)
     
    void ToggleBit (Int32 mask)
     
    Int32 GetAllBits ()
     
    void SetAllBits (Int32 bits)
     
    BaseContainer GetData ()
     
    BaseContainerGetDataInstance ()
     
    BaseContainerGetDataInstanceRef ()
     
    const StringGetName ()
     
    void SetName (const String &new_name)
     
    const GeMarkerGetMarker () const
     
    void SetMarker (const GeMarker &m)
     
    Bool AddUniqueID (Int32 appid, const Char *const mem, Int bytes)
     
    Bool FindUniqueID (Int32 appid, const Char *&mem, Int &bytes) const
     
    Int32 GetUniqueIDCount () const
     
    Bool GetUniqueIDIndex (Int32 idx, Int32 &id, const Char *&mem, Int &bytes) const
     
    BaseShaderGetFirstShader ()
     
    Bool InsertShader (BaseShader *shader, BaseShader *pred=nullptr)
     
    Bool InsertShaderLast (BaseShader *shader)
     
    RootCTrackGetCTrackRoot ()
     
    CTrackGetFirstCTrack ()
     
    CTrackFindCTrack (const DescID &id)
     
    Bool AppendCTrack (CTrack *t)
     
    void InsertTrackSorted (CTrack *track)
     
    LayerObjectGetLayerObject ()
     
    void SetLayerObject (LayerObject *layer)
     
    const LayerDataGetLayerData (BaseDocument *doc, Bool rawdata=false)
     
    Bool SetLayerData (BaseDocument *doc, const LayerData &data)
     
    DynamicDescriptionGetDynamicDescription ()
     
    virtual Bool IsBaseList ()
     
    Bool SetDescIDState (const DescID &id, DESCIDSTATE descidstate)
     
    DESCIDSTATE GetDescIDState (const DescID &id, Bool tolerant) const
     
    RootPluginNodeGetOverrideRoot ()
     
    BaseOverrideGetFirstOverride ()
     
    virtual Bool TranslateDescID (const DescID &id, DescID &res_id, GeListNode *&res_at)
     
    - Public Member Functions inherited from GeListNode
     GeListNode ()
     
     ~GeListNode ()
     
    virtual Bool GetNBit (Int32 bit) const
     
    virtual Bool ChangeNBit (NBIT bit, NBITCONTROL bitmode)
     
    BaseDocumentGetDocument ()
     
    virtual Int32 GetInfo ()
     
    GeListNodeGetPred ()
     
    GeListNodeGetNext ()
     
    GeListNodeGetUp ()
     
    GeListNodeGetDown ()
     
    GeListNodeGetDownLast ()
     
    void InsertBefore (GeListNode *op)
     
    void InsertAfter (GeListNode *op)
     
    void Remove ()
     
    void InsertUnder (GeListNode *op)
     
    void InsertUnderLast (GeListNode *op)
     
    RootList2DGetListHead ()
     
    Int32 GetNodeID (Int32 index=0) const
     
    - Public Member Functions inherited from PrivateChunk
     PrivateChunk ()
     
    Bool ReadChunk (HyperFile *hf, Bool keepin=false, Bool noheader=false)
     
    virtual Bool IsListHead ()
     
    Bool ReadObject (HyperFile *hf, Bool readheader)
     
    Bool WriteObject (HyperFile *hf, Int32 type)
     
    Bool CopyTo (PrivateChunk *dest, COPYFLAGS flags, AliasTrans *trans)
     
    Bool GetParameter (Int32 id, GeData &data)
     
    Bool SetParameter (Int32 id, const GeData &data)
     
    Bool GetParameter (const DescID &id, GeData &data)
     
    Bool SetParameter (const DescID &id, const GeData &data)
     
    virtual Int32 GetChunkLevel ()
     
    - Public Member Functions inherited from GeTempPublicNode2D< PrivateChunk >
    PrivateChunkGetNext () const
     
    PrivateChunkGetPrev () const
     
    void InsertBefore (PrivateChunk *n)
     
    void InsertAfter (PrivateChunk *n)
     
    void Remove ()
     

    Protected Member Functions

     PointObject ()
     
    - Protected Member Functions inherited from BaseObject
    virtual Bool HandleSubChunk (HyperFile *hf, Int32 id, Int32 level)
     
    virtual Bool Write (HyperFile *hf)
     
    virtual Int32 GetInstanceType () const
     
     BaseObject ()
     
     BaseObject (Int32 id)
     
    virtual ~BaseObject ()
     
    - Protected Member Functions inherited from BaseList4D
     BaseList4D ()
     
     ~BaseList4D ()
     
    - Protected Member Functions inherited from BaseList2D
    void SetID (Int32 id)
     

    Private Member Functions

    virtual Int32 GetDiskType () const
     

    Private Attributes

    BaseSelect bs_p
     
    BaseSelect hide_p
     

    Friends

    class BaseObject
     

    Type

    virtual Int32 GetType () const
     

    Point

    BaseSelectGetPointS ()
     
    BaseSelectGetPointH ()
     
    const VectorGetPointR ()
     
    VectorGetPointW ()
     
    Int32 GetPointCount ()
     
    Bool ResizeObject (Int32 pcnt)
     

    Additional Inherited Members

    - Static Public Member Functions inherited from BaseObject
    static BaseObjectAlloc (Int32 type)
     
    static void Free (BaseObject *&bl)
     
    - Protected Attributes inherited from BaseList2D
    Int32 m_id
     
    RootShader mp_rootshader
     
    RootShader mp_rootshader_hidden
     
    RootShader root_shader_repository
     
    Int32 l_bitfeld
     
    RootCTrack mp_rootctrack
     
    RootPluginNode root_override
     
    NotifyListnotify_events
     
    DescIdStorekeyframestore
     
    DescIdStorepropstore
     
    BaseContainer m_bc
     
    NodeDatam_data
     
    - Protected Attributes inherited from GeListNode
    GeAliasGoal m_xgoal
     
    UInt32 m_bits [4]
     
    RootList2Dt_rootlist_parent
     
    RootList2Dm_children
     
    BaseDocumentparent_doc
     
    void * unknownData
     
    Int unknownDataSize
     
    Int32 unknownDataLevel
     
    Int32 pluginID
     

    Detailed Description

    Represents a point object. Abstract; instantiate either PolygonObject or SplineObject.

    Member Typedef Documentation

    ◆ SUPER

    typedef BaseObject SUPER

    Constructor & Destructor Documentation

    ◆ PointObject()

    PointObject ( )
    protected

    Member Function Documentation

    ◆ IsInstanceOf()

    virtual Bool IsInstanceOf ( cineware::Int32  id) const
    virtual

    Reimplemented from BaseObject.

    Reimplemented in SplineObject, and PolygonObject.

    ◆ GetDiskType()

    virtual Int32 GetDiskType ( ) const
    privatevirtual

    Gets the unique disk type of the base list.

    Note
    Normally this is the same as GetType() but there are exceptions.
    Returns
    The disk type, for example Ocube.

    Reimplemented from BaseObject.

    Reimplemented in SplineObject, and PolygonObject.

    ◆ GetType()

    virtual Int32 GetType ( ) const
    virtual

    Gets the object type for a PointObject.

    Note
    Always returns Opoint.
    Returns
    The object type for a PointObject i.e. Opoint.

    Reimplemented from BaseList2D.

    Reimplemented in SplineObject, and PolygonObject.

    ◆ GetPointS()

    BaseSelect* GetPointS ( )

    Gets the selected points.

    Returns
    The selected points. The point object owns the pointed base select.

    ◆ GetPointH()

    BaseSelect* GetPointH ( )

    Gets the hidden points.

    Returns
    The hidden points. The point object owns the pointed base select.

    ◆ GetPointR()

    const Vector* GetPointR ( )

    Gets a pointer to the read-only point buffer.

    Returns
    A pointer to the read-only point buffer. The point object owns the pointed buffer.

    ◆ GetPointW()

    Vector* GetPointW ( )

    Gets a pointer to the writable point buffer.

    Returns
    A pointer to the point buffer. The point object owns the pointed buffer.

    ◆ GetPointCount()

    Int32 GetPointCount ( )

    Gets the number of points.

    Returns
    The number of points.

    ◆ ResizeObject()

    Bool ResizeObject ( Int32  pcnt)

    Resizes the object's point buffer.

    Parameters
    [in]pcntThe new number of points.
    Returns
    true if successful, otherwise false.

    Friends And Related Function Documentation

    ◆ BaseObject

    friend class BaseObject
    friend

    Member Data Documentation

    ◆ bs_p

    BaseSelect bs_p
    private

    ◆ hide_p

    BaseSelect hide_p
    private