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

#include <opennurbs_linetype.h>

Inheritance diagram for ON_Linetype:
ON_Object

Public Member Functions

int AppendSegment (const ON_LinetypeSegment &segment)
 
void Default ()
 
void Dump (ON_TextLog &) const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
int LinetypeIndex () const
 
const wchar_t * LinetypeName () const
 
ON_UUID ModelObjectId () const
 
 ON_Linetype ()
 
double PatternLength () const
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
bool RemoveSegment (int index)
 
ON_LinetypeSegment Segment (int index) const
 
int SegmentCount () const
 
ON_SimpleArray< ON_LinetypeSegment > & Segments ()
 
const ON_SimpleArray< ON_LinetypeSegment > & Segments () const
 
bool SetLinetypeIndex (int)
 
bool SetLinetypeName (const char *)
 
bool SetLinetypeName (const wchar_t *)
 
bool SetSegment (int index, const ON_LinetypeSegment &segment)
 
bool SetSegment (int index, double length, ON_LinetypeSegment::eSegType type)
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
 ~ON_Linetype ()
 
- 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 ()
 

Public Attributes

ON_UUID m_linetype_id
 
int m_linetype_index
 
ON_wString m_linetype_name
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Private Member Functions

 ON_OBJECT_DECLARE (ON_Linetype)
 

Private Attributes

ON_SimpleArray< ON_LinetypeSegmentm_segments
 

Constructor & Destructor Documentation

◆ ON_Linetype()

ON_Linetype::ON_Linetype ( )

◆ ~ON_Linetype()

ON_Linetype::~ON_Linetype ( )

Member Function Documentation

◆ AppendSegment()

int ON_Linetype::AppendSegment ( const ON_LinetypeSegment & segment)

◆ Default()

void ON_Linetype::Default ( )

◆ Dump()

void ON_Linetype::Dump ( ON_TextLog & dump) const
virtual

Reimplemented from ON_Object.

◆ IsValid()

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

Implements ON_Object.

◆ LinetypeIndex()

int ON_Linetype::LinetypeIndex ( ) const

◆ LinetypeName()

const wchar_t * ON_Linetype::LinetypeName ( ) const

◆ ModelObjectId()

ON_UUID ON_Linetype::ModelObjectId ( ) const
virtual

Reimplemented from ON_Object.

◆ ON_OBJECT_DECLARE()

ON_Linetype::ON_OBJECT_DECLARE ( ON_Linetype )
private

◆ PatternLength()

double ON_Linetype::PatternLength ( ) const

◆ Read()

ON_BOOL32 ON_Linetype::Read ( ON_BinaryArchive & file)
virtual

Reimplemented from ON_Object.

◆ RemoveSegment()

bool ON_Linetype::RemoveSegment ( int index)

◆ Segment()

ON_LinetypeSegment ON_Linetype::Segment ( int index) const

◆ SegmentCount()

int ON_Linetype::SegmentCount ( ) const

◆ Segments() [1/2]

ON_SimpleArray< ON_LinetypeSegment > & ON_Linetype::Segments ( )

◆ Segments() [2/2]

const ON_SimpleArray< ON_LinetypeSegment > & ON_Linetype::Segments ( ) const

◆ SetLinetypeIndex()

bool ON_Linetype::SetLinetypeIndex ( int i)

◆ SetLinetypeName() [1/2]

bool ON_Linetype::SetLinetypeName ( const char * s)

◆ SetLinetypeName() [2/2]

bool ON_Linetype::SetLinetypeName ( const wchar_t * s)

◆ SetSegment() [1/2]

bool ON_Linetype::SetSegment ( int index,
const ON_LinetypeSegment & segment )

◆ SetSegment() [2/2]

bool ON_Linetype::SetSegment ( int index,
double length,
ON_LinetypeSegment::eSegType type )

◆ Write()

ON_BOOL32 ON_Linetype::Write ( ON_BinaryArchive & file) const
virtual

Reimplemented from ON_Object.

Member Data Documentation

◆ m_linetype_id

ON_UUID ON_Linetype::m_linetype_id

◆ m_linetype_index

int ON_Linetype::m_linetype_index

◆ m_linetype_name

ON_wString ON_Linetype::m_linetype_name

◆ m_segments

ON_SimpleArray<ON_LinetypeSegment> ON_Linetype::m_segments
private

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