Base class for objects that can be written to and read from Bam files. More...
Public Member Functions | |
string | encodeToBamStream () |
Converts the TypedWritable object into a single stream of data using a BamWriter, and returns that data as a string string. | |
bool | encodeToBamStream (basic_stringchar data, BamWriter writer) |
Converts the TypedWritable object into a single stream of data using a BamWriter, and stores that data in the indicated string. | |
bool | encodeToBamStream (basic_stringchar data) |
Converts the TypedWritable object into a single stream of data using a BamWriter, and stores that data in the indicated string. | |
UpdateSeq | getBamModified () |
Returns the current bam_modified counter. | |
markBamModified () | |
Increments the bam_modified counter, so that this object will be invalidated and retransmitted on any open bam streams. | |
PyObject | reduce (PyObject self) |
This special Python method is implement to provide support for the pickle module. | |
PyObject | reducePersist (PyObject self, PyObject pickler) |
This special Python method is implement to provide support for the pickle module. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
Base class for objects that can be written to and read from Bam files.
See also TypedObject for detailed instructions.
string encodeToBamStream | ( | ) |
Converts the TypedWritable object into a single stream of data using a BamWriter, and returns that data as a string string.
Returns empty string on failure.
This is a convenience method particularly useful for cases when you are only serializing a single object. If you have many objects to process, it is more efficient to use the same BamWriter to serialize all of them together.
bool encodeToBamStream | ( | basic_stringchar | data, |
BamWriter | writer | ||
) |
Converts the TypedWritable object into a single stream of data using a BamWriter, and stores that data in the indicated string.
Returns true on success, false on failure.
This is a convenience method particularly useful for cases when you are only serializing a single object. If you have many objects to process, it is more efficient to use the same BamWriter to serialize all of them together.
bool encodeToBamStream | ( | basic_stringchar | data | ) |
Converts the TypedWritable object into a single stream of data using a BamWriter, and stores that data in the indicated string.
Returns true on success, false on failure.
This is a convenience method particularly useful for cases when you are only serializing a single object. If you have many objects to process, it is more efficient to use the same BamWriter to serialize all of them together.
Returns the current bam_modified counter.
This counter is normally incremented automatically whenever the object is modified.
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from TypedObject.
Reimplemented in PGWaitBar, PGScrollFrame, PGSliderBar, PGVirtualFrame, PGMouseWatcherBackground, PGMouseWatcherParameter, PGEntry, PGTop, PGButton, PGItem, WritableConfigurable, CachedTypedWritableReferenceCount, BamCacheRecord, Transform2SG, Trackball, MouseWatcher, MouseWatcherRegion, MouseSubregion, DriveInterface, MouseInterfaceNode, ButtonThrower, GeomTextGlyph, DynamicTextPage, PNMFileType, SheetNode, RopeNode, NurbsCurve, HermiteCurve, PiecewiseCurve, CubicCurveseg, ParametricCurve, VideoTexture, UserVertexTransform, UserVertexSlider, PerspectiveLens, OrthographicLens, MatrixLens, Material, Lens, GeomTristrips, GeomTrifans, GeomTriangles, GeomPoints, GeomLinestrips, GeomLines, Geom, TextureStage, GeomPrimitive, GeomVertexData, SliderTable, TransformBlendTable, TransformTable, GeomVertexArrayData, GeomVertexFormat, GeomVertexArrayFormat, InternalName, PointerEventList, EventStoreTypedRefCount, ParasiteBuffer, GraphicsBuffer, CallbackGraphicsWindow, GraphicsWindow, GraphicsOutputBase, GraphicsOutput, GraphicsStateGuardianBase, GraphicsStateGuardian, VirtualMouse, TrackerNode, MouseAndKeyboard, DialNode, ButtonNode, AnalogNode, CollisionVisualizer, CollisionTube, CollisionSegment, CollisionParabola, CollisionLine, CollisionRay, CollisionInvSphere, CollisionSphere, CollisionPolygon, CollisionFloorMesh, CollisionPlane, CollisionEntry, CollisionNode, CollisionBox, CollisionSolid, CharacterJointEffect, CharacterJointBundle, Character, JointVertexTransform, VertexSlider, CharacterVertexSlider, CharacterSlider, CharacterJoint, PartBundleNode, MovingPartACScalarSwitchType, MovingPartScalar, MovingPartACMatrixSwitchType, MovingPartMatrix, MovingPartBase, PartBundle, CopyOnWriteObject, AnimPreloadTable, AnimChannelScalarTable, AnimChannelScalarDynamic, AnimChannelMatrixXfmTable, AnimChannelMatrixDynamic, AnimChannelScalar, AnimChannelMatrix, AnimChannelBase, PartGroup, AnimBundleNode, AnimBundle, AnimGroup, RigidBodyCombiner, SceneGraphAnalyzerMeter, VertexTransform, NodeVertexTransform, Texture, MovieTexture, TextNode, FrameRateMeter, UserDataAudioCursor, UserDataAudio, MicrophoneAudio, InkblotVideoCursor, InkblotVideo, FfmpegVideoCursor, FfmpegVideo, MovieVideoCursor, MovieVideo, FfmpegAudioCursor, FfmpegAudio, MovieAudioCursor, MovieAudio, StencilAttrib, ShadeModelAttrib, ScissorAttrib, RescaleNormalAttrib, PortalNode, ScissorEffect, TexProjectorEffect, ShowBoundsEffect, ShaderAttrib, ShaderInput, PolylightEffect, PolylightNode, OccluderEffect, OccluderNode, TexGenAttrib, TextureAttrib, ModelRoot, ModelNode, MaterialAttrib, LightRampAttrib, LightAttrib, FogAttrib, Fog, EventStoreValueBase, EventStorePandaNode, DepthWriteAttrib, DepthTestAttrib, DepthOffsetAttrib, DecalEffect, GeomNode, CullFaceAttrib, CullBinAttrib, CompassEffect, ColorWriteAttrib, ColorScaleAttrib, ColorBlendAttrib, ColorAttrib, ClipPlaneAttrib, PlaneNode, LensNode, BillboardEffect, AuxBitplaneAttrib, AudioVolumeAttrib, TransparencyAttrib, RenderEffects, RenderEffect, AntialiasAttrib, AlphaTestAttrib, RenderState, TexMatrixAttrib, RenderModeAttrib, TypedWritableReferenceCount, RenderAttrib, NodeCachedReferenceCount, TransformState, UvScrollNode, SwitchNode, Spotlight, SequenceNode, SelectiveChildNode, PointLight, FadeLODNode, LODNode, DirectionalLight, Camera, LightLensNode, CallbackNode, AmbientLight, PandaNode, LightNode, DataNode, and MouseRecorder.
markBamModified | ( | ) |
Increments the bam_modified counter, so that this object will be invalidated and retransmitted on any open bam streams.
This should normally not need to be called by user code; it should be called internally when the object has been changed in a way that legitimately requires its retransmission to any connected clients.
PyObject reduce | ( | PyObject | self | ) |
This special Python method is implement to provide support for the pickle module.
This hooks into the native pickle and cPickle modules, but it cannot properly handle self-referential BAM objects.
PyObject reducePersist | ( | PyObject | self, |
PyObject | pickler | ||
) |
This special Python method is implement to provide support for the pickle module.
This is similar to __reduce__, but it provides additional support for the missing persistent-state object needed to properly support self-referential BAM objects written to the pickle stream. This hooks into the pickle and cPickle modules implemented in direct/src/stdpy.