QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
ON_HistoryRecord Class Reference

#include <opennurbs_object_history.h>

Inheritance diagram for ON_HistoryRecord:
ON_Object

Public Types

enum  RECORD_TYPE { history_parameters = 0 , feature_parameters = 1 , force_32bit_record_type = 0xFFFFFFFF }
 

Public Member Functions

void Destroy ()
 
void DestroyValue (int value_id)
 
void Dump (ON_TextLog &) const
 
bool GetBoolValue (int value_id, bool *b) const
 
int GetBoolValues (int value_id, ON_SimpleArray< bool > &) const
 
bool GetBrepValue (int value_id, const ON_Brep *&) const
 
bool GetColorValue (int value_id, ON_Color *color) const
 
int GetColorValues (int value_id, ON_SimpleArray< ON_Color > &) const
 
bool GetCurveValue (int value_id, const ON_Curve *&) const
 
bool GetDoubleValue (int value_id, double *number) const
 
int GetDoubleValues (int value_id, ON_SimpleArray< double > &) const
 
bool GetGeometryValue (int value_id, const ON_Geometry *&) const
 
int GetGeometryValues (int value_id, ON_SimpleArray< const ON_Geometry * > &) const
 
bool GetIntValue (int value_id, int *i) const
 
int GetIntValues (int value_id, ON_SimpleArray< int > &) const
 
bool GetMeshValue (int value_id, const ON_Mesh *&) const
 
bool GetObjRefValue (int value_id, ON_ObjRef &oref) const
 
int GetObjRefValues (int value_id, ON_ClassArray< ON_ObjRef > &objects) const
 
bool GetPointOnObjectValue (int value_id, ON_ObjRef &oref) const
 
bool GetPointValue (int value_id, ON_3dPoint &point) const
 
int GetPointValues (int value_id, ON_SimpleArray< ON_3dPoint > &) const
 
bool GetStringValue (int value_id, ON_wString &str) const
 
int GetStringValues (int value_id, ON_ClassArray< ON_wString > &string) const
 
bool GetSurfaceValue (int value_id, const ON_Surface *&) const
 
bool GetUuidValue (int value_id, ON_UUID *uuid) const
 
int GetUuidValues (int value_id, ON_SimpleArray< ON_UUID > &) const
 
bool GetVectorValue (int value_id, ON_3dVector &point) const
 
int GetVectorValues (int value_id, ON_SimpleArray< ON_3dVector > &) const
 
bool GetXformValue (int value_id, ON_Xform &point) const
 
int GetXformValues (int value_id, ON_SimpleArray< ON_Xform > &) const
 
bool IsAntecedent (ON_UUID object_uuid) const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
ON_UUID ModelObjectId () const
 
 ON_HistoryRecord ()
 
 ON_HistoryRecord (const ON_HistoryRecord &src)
 
ON_HistoryRecordoperator= (const ON_HistoryRecord &src)
 
ON_BOOL32 Read (ON_BinaryArchive &binary_archive)
 
void RemapObjectIds (const ON_SimpleArray< ON_UuidPair > &uuid_remap)
 
bool SetBoolValue (int value_id, bool b)
 
bool SetBoolValues (int value_id, int count, const bool *b)
 
bool SetColorValue (int value_id, ON_Color c)
 
bool SetColorValues (int value_id, int count, const ON_Color *c)
 
bool SetDoubleValue (int value_id, double x)
 
bool SetDoubleValues (int value_id, int count, const double *x)
 
bool SetGeometryValue (int value_id, ON_Geometry *g)
 
bool SetGeometryValues (int value_id, const ON_SimpleArray< ON_Geometry * > a)
 
bool SetIntValue (int value_id, int i)
 
bool SetIntValues (int value_id, int count, const int *i)
 
bool SetObjRefValue (int value_id, const ON_ObjRef &oref)
 
bool SetObjRefValues (int value_id, int count, const ON_ObjRef *oref)
 
bool SetPointOnObjectValue (int value_id, const ON_ObjRef &oref, ON_3dPoint point)
 
bool SetPointValue (int value_id, ON_3dPoint p)
 
bool SetPointValues (int value_id, int count, const ON_3dPoint *P)
 
bool SetStringValue (int value_id, const wchar_t *s)
 
bool SetStringValues (int value_id, const ON_ClassArray< ON_wString > &s)
 
bool SetStringValues (int value_id, int count, const wchar_t *const *s)
 
bool SetUuidValue (int value_id, ON_UUID uuid)
 
bool SetUuidValues (int value_id, int count, const ON_UUID *u)
 
bool SetVectorValue (int value_id, ON_3dVector v)
 
bool SetVectorValues (int value_id, int count, const ON_3dVector *V)
 
bool SetXformValue (int value_id, ON_Xform xform)
 
bool SetXformValues (int value_id, int count, const ON_Xform *xform)
 
int ValueReport (ON_TextLog &text_log) const
 
ON_BOOL32 Write (ON_BinaryArchive &binary_archive) const
 
 ~ON_HistoryRecord ()
 
- Public Member Functions inherited from ON_Object
ON_BOOL32 AttachUserData (ON_UserData *pUserData)
 
bool CopyFrom (const ON_Object *src)
 
void CopyUserData (const ON_Object &source_object)
 
virtual ON__UINT32 DataCRC (ON__UINT32 current_remainder) const
 
virtual void DestroyRuntimeCache (bool bDelete=true)
 
ON_BOOL32 DetachUserData (ON_UserData *pUserData)
 
ON_UserDataFirstUserData () const
 
ON_UserDataGetUserData (const ON_UUID &userdata_uuid) const
 
bool GetUserString (const wchar_t *key, ON_wString &string_value) const
 
int GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const
 
int GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const
 
ON_BOOL32 IsKindOf (const ON_ClassId *pClassId) const
 
virtual void MemoryRelocate ()
 
void MoveUserData (ON_Object &source_object)
 
virtual ON::object_type ObjectType () const
 
 ON_Object ()
 
 ON_Object (const ON_Object &)
 
ON_Objectoperator= (const ON_Object &)
 
void PurgeUserData ()
 
bool SetUserString (const wchar_t *key, const wchar_t *string_value)
 
virtual unsigned int SizeOf () const
 
void TransformUserData (const ON_Xform &xform)
 
virtual ~ON_Object ()
 

Static Public Member Functions

static RECORD_TYPE RecordType (int i)
 

Public Attributes

ON_UuidList m_antecedents
 
ON_UUID m_command_id
 
ON_UuidList m_descendants
 
ON_UUID m_record_id
 
RECORD_TYPE m_record_type
 
ON_SimpleArray< class ON_Value * > m_value
 
int m_version
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Private Member Functions

void CopyHelper (const ON_HistoryRecord &)
 
ON_ValueFindValueHelper (int, int, bool) const
 
 ON_OBJECT_DECLARE (ON_HistoryRecord)
 

Private Attributes

bool m_bValuesSorted
 

Member Enumeration Documentation

◆ RECORD_TYPE

Enumerator
history_parameters 
feature_parameters 
force_32bit_record_type 

Constructor & Destructor Documentation

◆ ON_HistoryRecord() [1/2]

ON_HistoryRecord::ON_HistoryRecord ( )

◆ ~ON_HistoryRecord()

ON_HistoryRecord::~ON_HistoryRecord ( )

◆ ON_HistoryRecord() [2/2]

ON_HistoryRecord::ON_HistoryRecord ( const ON_HistoryRecord & src)

Member Function Documentation

◆ CopyHelper()

void ON_HistoryRecord::CopyHelper ( const ON_HistoryRecord & src)
private

◆ Destroy()

void ON_HistoryRecord::Destroy ( )

◆ DestroyValue()

void ON_HistoryRecord::DestroyValue ( int value_id)

◆ Dump()

void ON_HistoryRecord::Dump ( ON_TextLog & text_log) const
virtual

Reimplemented from ON_Object.

◆ FindValueHelper()

ON_Value * ON_HistoryRecord::FindValueHelper ( int value_id,
int value_type,
bool bCreateOne ) const
private

◆ GetBoolValue()

bool ON_HistoryRecord::GetBoolValue ( int value_id,
bool * b ) const

◆ GetBoolValues()

int ON_HistoryRecord::GetBoolValues ( int value_id,
ON_SimpleArray< bool > & a ) const

◆ GetBrepValue()

bool ON_HistoryRecord::GetBrepValue ( int value_id,
const ON_Brep *& b ) const

◆ GetColorValue()

bool ON_HistoryRecord::GetColorValue ( int value_id,
ON_Color * color ) const

◆ GetColorValues()

int ON_HistoryRecord::GetColorValues ( int value_id,
ON_SimpleArray< ON_Color > & a ) const

◆ GetCurveValue()

bool ON_HistoryRecord::GetCurveValue ( int value_id,
const ON_Curve *& c ) const

◆ GetDoubleValue()

bool ON_HistoryRecord::GetDoubleValue ( int value_id,
double * number ) const

◆ GetDoubleValues()

int ON_HistoryRecord::GetDoubleValues ( int value_id,
ON_SimpleArray< double > & a ) const

◆ GetGeometryValue()

bool ON_HistoryRecord::GetGeometryValue ( int value_id,
const ON_Geometry *& g ) const

◆ GetGeometryValues()

int ON_HistoryRecord::GetGeometryValues ( int value_id,
ON_SimpleArray< const ON_Geometry * > & a ) const

◆ GetIntValue()

bool ON_HistoryRecord::GetIntValue ( int value_id,
int * i ) const

◆ GetIntValues()

int ON_HistoryRecord::GetIntValues ( int value_id,
ON_SimpleArray< int > & a ) const

◆ GetMeshValue()

bool ON_HistoryRecord::GetMeshValue ( int value_id,
const ON_Mesh *& m ) const

◆ GetObjRefValue()

bool ON_HistoryRecord::GetObjRefValue ( int value_id,
ON_ObjRef & oref ) const

◆ GetObjRefValues()

int ON_HistoryRecord::GetObjRefValues ( int value_id,
ON_ClassArray< ON_ObjRef > & objects ) const

◆ GetPointOnObjectValue()

bool ON_HistoryRecord::GetPointOnObjectValue ( int value_id,
ON_ObjRef & oref ) const

◆ GetPointValue()

bool ON_HistoryRecord::GetPointValue ( int value_id,
ON_3dPoint & point ) const

◆ GetPointValues()

int ON_HistoryRecord::GetPointValues ( int value_id,
ON_SimpleArray< ON_3dPoint > & a ) const

◆ GetStringValue()

bool ON_HistoryRecord::GetStringValue ( int value_id,
ON_wString & str ) const

◆ GetStringValues()

int ON_HistoryRecord::GetStringValues ( int value_id,
ON_ClassArray< ON_wString > & string ) const

◆ GetSurfaceValue()

bool ON_HistoryRecord::GetSurfaceValue ( int value_id,
const ON_Surface *& s ) const

◆ GetUuidValue()

bool ON_HistoryRecord::GetUuidValue ( int value_id,
ON_UUID * uuid ) const

◆ GetUuidValues()

int ON_HistoryRecord::GetUuidValues ( int value_id,
ON_SimpleArray< ON_UUID > & a ) const

◆ GetVectorValue()

bool ON_HistoryRecord::GetVectorValue ( int value_id,
ON_3dVector & point ) const

◆ GetVectorValues()

int ON_HistoryRecord::GetVectorValues ( int value_id,
ON_SimpleArray< ON_3dVector > & a ) const

◆ GetXformValue()

bool ON_HistoryRecord::GetXformValue ( int value_id,
ON_Xform & point ) const

◆ GetXformValues()

int ON_HistoryRecord::GetXformValues ( int value_id,
ON_SimpleArray< ON_Xform > & a ) const

◆ IsAntecedent()

bool ON_HistoryRecord::IsAntecedent ( ON_UUID object_uuid) const

◆ IsValid()

ON_BOOL32 ON_HistoryRecord::IsValid ( ON_TextLog * text_log = NULL) const
virtual

Implements ON_Object.

◆ ModelObjectId()

ON_UUID ON_HistoryRecord::ModelObjectId ( ) const
virtual

Reimplemented from ON_Object.

◆ ON_OBJECT_DECLARE()

ON_HistoryRecord::ON_OBJECT_DECLARE ( ON_HistoryRecord )
private

◆ operator=()

ON_HistoryRecord & ON_HistoryRecord::operator= ( const ON_HistoryRecord & src)

◆ Read()

ON_BOOL32 ON_HistoryRecord::Read ( ON_BinaryArchive & binary_archive)
virtual

Reimplemented from ON_Object.

◆ RecordType()

ON_HistoryRecord::RECORD_TYPE ON_HistoryRecord::RecordType ( int i)
static

◆ RemapObjectIds()

void ON_HistoryRecord::RemapObjectIds ( const ON_SimpleArray< ON_UuidPair > & uuid_remap)

◆ SetBoolValue()

bool ON_HistoryRecord::SetBoolValue ( int value_id,
bool b )

◆ SetBoolValues()

bool ON_HistoryRecord::SetBoolValues ( int value_id,
int count,
const bool * b )

◆ SetColorValue()

bool ON_HistoryRecord::SetColorValue ( int value_id,
ON_Color c )

◆ SetColorValues()

bool ON_HistoryRecord::SetColorValues ( int value_id,
int count,
const ON_Color * c )

◆ SetDoubleValue()

bool ON_HistoryRecord::SetDoubleValue ( int value_id,
double x )

◆ SetDoubleValues()

bool ON_HistoryRecord::SetDoubleValues ( int value_id,
int count,
const double * x )

◆ SetGeometryValue()

bool ON_HistoryRecord::SetGeometryValue ( int value_id,
ON_Geometry * g )

◆ SetGeometryValues()

bool ON_HistoryRecord::SetGeometryValues ( int value_id,
const ON_SimpleArray< ON_Geometry * > a )

◆ SetIntValue()

bool ON_HistoryRecord::SetIntValue ( int value_id,
int i )

◆ SetIntValues()

bool ON_HistoryRecord::SetIntValues ( int value_id,
int count,
const int * i )

◆ SetObjRefValue()

bool ON_HistoryRecord::SetObjRefValue ( int value_id,
const ON_ObjRef & oref )

◆ SetObjRefValues()

bool ON_HistoryRecord::SetObjRefValues ( int value_id,
int count,
const ON_ObjRef * oref )

◆ SetPointOnObjectValue()

bool ON_HistoryRecord::SetPointOnObjectValue ( int value_id,
const ON_ObjRef & oref,
ON_3dPoint point )

◆ SetPointValue()

bool ON_HistoryRecord::SetPointValue ( int value_id,
ON_3dPoint p )

◆ SetPointValues()

bool ON_HistoryRecord::SetPointValues ( int value_id,
int count,
const ON_3dPoint * P )

◆ SetStringValue()

bool ON_HistoryRecord::SetStringValue ( int value_id,
const wchar_t * s )

◆ SetStringValues() [1/2]

bool ON_HistoryRecord::SetStringValues ( int value_id,
const ON_ClassArray< ON_wString > & s )

◆ SetStringValues() [2/2]

bool ON_HistoryRecord::SetStringValues ( int value_id,
int count,
const wchar_t *const * s )

◆ SetUuidValue()

bool ON_HistoryRecord::SetUuidValue ( int value_id,
ON_UUID uuid )

◆ SetUuidValues()

bool ON_HistoryRecord::SetUuidValues ( int value_id,
int count,
const ON_UUID * u )

◆ SetVectorValue()

bool ON_HistoryRecord::SetVectorValue ( int value_id,
ON_3dVector v )

◆ SetVectorValues()

bool ON_HistoryRecord::SetVectorValues ( int value_id,
int count,
const ON_3dVector * V )

◆ SetXformValue()

bool ON_HistoryRecord::SetXformValue ( int value_id,
ON_Xform xform )

◆ SetXformValues()

bool ON_HistoryRecord::SetXformValues ( int value_id,
int count,
const ON_Xform * xform )

◆ ValueReport()

int ON_HistoryRecord::ValueReport ( ON_TextLog & text_log) const

◆ Write()

ON_BOOL32 ON_HistoryRecord::Write ( ON_BinaryArchive & binary_archive) const
virtual

Reimplemented from ON_Object.

Member Data Documentation

◆ m_antecedents

ON_UuidList ON_HistoryRecord::m_antecedents

◆ m_bValuesSorted

bool ON_HistoryRecord::m_bValuesSorted
private

◆ m_command_id

ON_UUID ON_HistoryRecord::m_command_id

◆ m_descendants

ON_UuidList ON_HistoryRecord::m_descendants

◆ m_record_id

ON_UUID ON_HistoryRecord::m_record_id

◆ m_record_type

RECORD_TYPE ON_HistoryRecord::m_record_type

◆ m_value

ON_SimpleArray< class ON_Value* > ON_HistoryRecord::m_value

◆ m_version

int ON_HistoryRecord::m_version

The documentation for this class was generated from the following files: