Rhino C++ API
8.13
|
#include <rhinoSdkSnapshots.h>
Public Member Functions | |
virtual | ~IRhinoSnapshotsClient (void) |
virtual bool | AnimateDocument (CRhinoDoc &doc, double dPos, const ON_Buffer &start, const ON_Buffer &stop)=0 |
virtual bool | AnimateObject (CRhinoDoc &doc, const CRhinoObject &obj, const ON_Xform &xformObject, double dPos, const ON_Buffer &start, const ON_Buffer &stop)=0 |
virtual void | AnimationStart (CRhinoDoc &doc, int iFrames)=0 |
virtual void | AnimationStop (CRhinoDoc &doc)=0 |
virtual ON_wString | Category (void) const =0 |
virtual UUID | ClientId (void) const =0 |
virtual void * | EVF (const wchar_t *, void *) |
virtual void | ExtendBoundingBoxForDocumentAnimation (CRhinoDoc &doc, const ON_Buffer &start, const ON_Buffer &stop, ON_BoundingBox &bb)=0 |
virtual void | ExtendBoundingBoxForObjectAnimation (CRhinoDoc &doc, const CRhinoObject &obj, const ON_Xform &xformObject, const ON_Buffer &start, const ON_Buffer &stop, ON_BoundingBox &bb)=0 |
virtual bool | IsCurrentModelStateInAnySnapshot (CRhinoDoc &doc, const CRhinoObject &obj, const ON_Buffer &bufferModel, const ON_SimpleArray< const ON_Buffer * > &aSnapShots, ON_TextLog *pReportMissing=nullptr) const =0 |
virtual bool | IsCurrentModelStateInAnySnapshot (CRhinoDoc &doc, const ON_Buffer &bufferModel, const ON_SimpleArray< const ON_Buffer * > &aSnapShots, ON_TextLog *pReportMissing=nullptr) const =0 |
virtual ON_wString | Name (void) const =0 |
virtual bool | ObjectTransformNotification (CRhinoDoc &doc, const CRhinoObject &obj, const ON_Xform &xformObject, ON_Buffer &buffer)=0 |
virtual UUID | PlugInId (void) const =0 |
virtual bool | PrepareForDocumentAnimation (CRhinoDoc &doc, const ON_Buffer &start, const ON_Buffer &stop)=0 |
virtual bool | PrepareForObjectAnimation (CRhinoDoc &doc, const CRhinoObject &obj, const ON_Xform &xformObject, const ON_Buffer &start, const ON_Buffer &stop)=0 |
virtual bool | RestoreDocument (CRhinoDoc &doc, const ON_Buffer &buffer)=0 |
virtual bool | RestoreObject (CRhinoDoc &doc, const CRhinoObject &obj, const ON_Xform &xformObject, const ON_Buffer &buffer)=0 |
virtual bool | SaveDocument (CRhinoDoc &doc, ON_Buffer &buffer)=0 |
virtual bool | SaveObject (CRhinoDoc &doc, const CRhinoObject &obj, const ON_Xform &xformObject, ON_Buffer &buffer)=0 |
virtual void | SnapshotRestored (CRhinoDoc &doc)=0 |
virtual bool | SupportsAnimation (void) const =0 |
virtual bool | SupportsDocument (void) const =0 |
virtual bool | SupportsObject (const CRhinoObject &obj) const =0 |
virtual bool | SupportsObjects (void) const =0 |
Static Public Member Functions | |
static ON_wString | ApplicationCategory (void) |
static ON_wString | DocumentCategory (void) |
static ON_wString | LayersCategory (void) |
static ON_wString | LightsCategory (void) |
static ON_wString | MeshModifiersCategory (void) |
static ON_wString | ObjectsCategory (void) |
static bool | Register (IRhinoSnapshotsClient &client) |
static ON_wString | RenderingCategory (void) |
static bool | Unregister (IRhinoSnapshotsClient &client) |
static UUID | ViewClientId (void) |
static ON_wString | ViewsCategory (void) |
Copyright (c) 1993-2017 Robert McNeel & Associates. All rights reserved. Rhinoceros is a registered trademark of Robert McNeel & Associates.
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.
For complete Rhino SDK copyright information see http://www.rhino3d.com/developer. This is the abstract interface class for all Snapshot clients.
|
inlinevirtual |
|
pure virtual |
Called for each frame. Starting at 0.0.
doc | is the current document. |
dPos | is is the current frame. Starting at 0.0. |
start | is a buffer to the data of the starting position. |
stop | is a buffer to the data of the ending position. |
|
pure virtual |
Called for each frame. Starting at 0.0.
doc | is the current document. |
obj | is the current object. |
xformObject | is a transformation matrix. The matrix is set to identity the first time an object is associated with a snapshot. After that the matrix is updated when the object is transformed (scale, rotate etc.). |
dPos | is is the current frame. Starting at 0.0. |
start | is a buffer to the data of the starting position. |
stop | is a buffer to the data of the ending position. |
|
pure virtual |
Called once at the start of an animation.
doc | is the current document. |
iFrames | is the number of frames to be animated. |
|
pure virtual |
Called once at the end of an animation.
|
static |
|
pure virtual |
|
pure virtual |
|
static |
|
inlinevirtual |
Emergency virtual function for future expansion.
|
pure virtual |
Called once at the start of an animation. This can be used to extend the scene bounding box to avoid clipping.
doc | is the current document. |
start | is a buffer to the data of the starting position. |
stop | is a buffer to the data of the ending position. |
bb | is the current scene bounding box. |
|
pure virtual |
Called once at the start of an animation. This can be used to extend the scene bounding box to avoid clipping.
doc | is the current document. |
obj | is the current object. |
xformObject | is a transformation matrix. The matrix is set to identity the first time an object is associated with a snapshot. After that the matrix is updated when the object is transformed (scale, rotate etc.). |
start | is a buffer to the data of the starting position. |
stop | is a buffer to the data of the ending position. |
bb | is the current scene bounding box. |
|
pure virtual |
Called before restoring a snapshot. Warns the user if the current model state is not already saved.
doc | is the current document. |
obj | is the current object. |
bufferModel | is the current state of the model. |
aSnapShots | a list of client data. |
pReportMissing | is used to list the missing items that cannot be found in the current model. |
|
pure virtual |
Called before restoring a snapshot. Warns the user if the current model state is not already saved.
doc | is the current document. |
bufferModel | is the current state of the model. |
aSnapShots | a list of client data. |
pReportMissing | is used to list the missing items that cannot be found in the current model. |
|
static |
|
static |
|
static |
|
pure virtual |
|
static |
|
pure virtual |
Called for every object that is associated with a snapshot and gets transformed in Rhino. This is getting called for each stored snapshot and gives the client the possibility to update the stored data.
doc | is the current document. |
obj | is the current object. |
xformObject | is a transformation matrix. The matrix is set to identity the first time an object is associated with a snapshot. After that the matrix is updated when the object is transformed (scale, rotate etc.). |
buffer | is a buffer which can be used to update the stored data. |
|
pure virtual |
|
pure virtual |
Called once at the start of an animation.
doc | is the current document. |
start | is a buffer to the data of the starting position. |
stop | is a buffer to the data of the ending position. |
|
pure virtual |
Called once at the start of an animation.
doc | is the current document. |
obj | is the current object. |
xformObject | is a transformation matrix. The matrix is set to identity the first time an object is associated with a snapshot. After that the matrix is updated when the object is transformed (scale, rotate etc.). |
start | is a buffer to the data of the starting position. |
stop | is a buffer to the data of the ending position. |
|
static |
Call to register your client.
client | client to register. |
|
static |
|
pure virtual |
Called when the user restores a snapshot and SupportDocument() returns true.
doc | is the current document. |
buffer | is the buffer to read the data from. |
|
pure virtual |
Called when the user restores a snapshot and SupportsObjects() and SupportsObject(const CRhinoObject& obj) returns true.
doc | is the current document. |
obj | is the current object. |
xformObject | is a transformation matrix. The matrix is set to identity the first time an object is associated with a snapshot. After that the matrix is updated when the object is transformed (scale, rotate etc.). |
buffer | is the buffer to read the data from. |
|
pure virtual |
Called when the user saves a snapshot and SupportDocument() returns true.
doc | is the current document. |
buffer | is the buffer to write the data to. |
|
pure virtual |
Called when the user saves a snapshot and SupportsObjects() and SupportsObject(const CRhinoObject& obj) returns true.
doc | is the current document. |
obj | is the current object. |
xformObject | is a transformation matrix. The matrix is set to identity the first time an object is associated with a snapshot. After that the matrix is updated when the object is transformed (scale, rotate etc.). |
buffer | is the buffer to write the data to. |
|
pure virtual |
Called after all clients restored their data.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
static |
Call to unregister your client.
client | client to unregister. |
|
static |
|
static |