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

#include <opennurbs_hatch.h>

Inheritance diagram for ON_HatchPattern:
ON_Object

Public Types

enum  eFillType { ftSolid = 0 , ftLines = 1 , ftGradient = 2 , ftLast = 3 }
 

Public Member Functions

int AddHatchLine (const ON_HatchLine &line)
 
const wchar_t * Description () const
 
void Dump (ON_TextLog &) const
 
eFillType FillType () const
 
void GetDescription (ON_wString &string) const
 
void GetName (ON_wString &string) const
 
const ON_HatchLineHatchLine (int index) const
 
int HatchLineCount () const
 
int Index () const
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
ON_UUID ModelObjectId () const
 
const wchar_t * Name () const
 
 ON_HatchPattern ()
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
void RemoveAllHatchLines ()
 
bool RemoveHatchLine (int index)
 
void SetDescription (const char *pDescription)
 
void SetDescription (const wchar_t *pDescription)
 
void SetFillType (eFillType type)
 
int SetHatchLines (const ON_ClassArray< ON_HatchLine > lines)
 
void SetIndex (int index)
 
void SetName (const char *pName)
 
void SetName (const wchar_t *pName)
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
 ~ON_HatchPattern ()
 
- 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_wString m_description
 
ON_UUID m_hatchpattern_id
 
int m_hatchpattern_index
 
ON_wString m_hatchpattern_name
 
ON_ClassArray< ON_HatchLinem_lines
 
eFillType m_type
 
- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Private Member Functions

 ON_OBJECT_DECLARE (ON_HatchPattern)
 

Member Enumeration Documentation

◆ eFillType

Enumerator
ftSolid 
ftLines 
ftGradient 
ftLast 

Constructor & Destructor Documentation

◆ ON_HatchPattern()

ON_HatchPattern::ON_HatchPattern ( )

◆ ~ON_HatchPattern()

ON_HatchPattern::~ON_HatchPattern ( )

Member Function Documentation

◆ AddHatchLine()

int ON_HatchPattern::AddHatchLine ( const ON_HatchLine & line)

◆ Description()

const wchar_t * ON_HatchPattern::Description ( ) const

◆ Dump()

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

Reimplemented from ON_Object.

◆ FillType()

ON_HatchPattern::eFillType ON_HatchPattern::FillType ( ) const

◆ GetDescription()

void ON_HatchPattern::GetDescription ( ON_wString & string) const

◆ GetName()

void ON_HatchPattern::GetName ( ON_wString & string) const

◆ HatchLine()

const ON_HatchLine * ON_HatchPattern::HatchLine ( int index) const

◆ HatchLineCount()

int ON_HatchPattern::HatchLineCount ( ) const

◆ Index()

int ON_HatchPattern::Index ( ) const

◆ IsValid()

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

Implements ON_Object.

◆ ModelObjectId()

ON_UUID ON_HatchPattern::ModelObjectId ( ) const
virtual

Reimplemented from ON_Object.

◆ Name()

const wchar_t * ON_HatchPattern::Name ( ) const

◆ ON_OBJECT_DECLARE()

ON_HatchPattern::ON_OBJECT_DECLARE ( ON_HatchPattern )
private

◆ Read()

ON_BOOL32 ON_HatchPattern::Read ( ON_BinaryArchive & ar)
virtual

Reimplemented from ON_Object.

◆ RemoveAllHatchLines()

void ON_HatchPattern::RemoveAllHatchLines ( )

◆ RemoveHatchLine()

bool ON_HatchPattern::RemoveHatchLine ( int index)

◆ SetDescription() [1/2]

void ON_HatchPattern::SetDescription ( const char * pDescription)

◆ SetDescription() [2/2]

void ON_HatchPattern::SetDescription ( const wchar_t * pDescription)

◆ SetFillType()

void ON_HatchPattern::SetFillType ( eFillType type)

◆ SetHatchLines()

int ON_HatchPattern::SetHatchLines ( const ON_ClassArray< ON_HatchLine > lines)

◆ SetIndex()

void ON_HatchPattern::SetIndex ( int index)

◆ SetName() [1/2]

void ON_HatchPattern::SetName ( const char * pName)

◆ SetName() [2/2]

void ON_HatchPattern::SetName ( const wchar_t * pName)

◆ Write()

ON_BOOL32 ON_HatchPattern::Write ( ON_BinaryArchive & ar) const
virtual

Reimplemented from ON_Object.

Member Data Documentation

◆ m_description

ON_wString ON_HatchPattern::m_description

◆ m_hatchpattern_id

ON_UUID ON_HatchPattern::m_hatchpattern_id

◆ m_hatchpattern_index

int ON_HatchPattern::m_hatchpattern_index

◆ m_hatchpattern_name

ON_wString ON_HatchPattern::m_hatchpattern_name

◆ m_lines

ON_ClassArray<ON_HatchLine> ON_HatchPattern::m_lines

◆ m_type

eFillType ON_HatchPattern::m_type

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