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

#include <opennurbs_hatch.h>

Inheritance diagram for ON_Hatch:
ON_Geometry ON_Object

Public Member Functions

void AddLoop (ON_HatchLoop *loop)
 
ON_3dPoint BasePoint () const
 
ON_2dPoint BasePoint2d () const
 
bool Create (const ON_Plane &plane, const ON_SimpleArray< const ON_Curve * > loops, int pattern_index, double pattern_rotation, double pattern_scale)
 
int Dimension () const
 
void Dump (ON_TextLog &) const
 
virtual ON_HatchDuplicateHatch () const
 
ON_BOOL32 GetBBox (double *, double *, ON_BOOL32=false) const
 
bool GetTightBoundingBox (ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
 
bool InsertLoop (int index, ON_HatchLoop *loop)
 
ON_BOOL32 IsValid (ON_TextLog *text_log=NULL) const
 
const ON_HatchLoopLoop (int index) const
 
int LoopCount () const
 
ON_CurveLoopCurve3d (int index) const
 
ON::object_type ObjectType () const
 
 ON_Hatch ()
 
 ON_Hatch (const ON_Hatch &)
 
ON_Hatchoperator= (const ON_Hatch &)
 
int PatternIndex () const
 
double PatternRotation () const
 
double PatternScale () const
 
const ON_PlanePlane () const
 
ON_BOOL32 Read (ON_BinaryArchive &)
 
bool RemoveLoop (int index)
 
bool ReplaceLoops (ON_SimpleArray< const ON_Curve * > loops)
 
void SetBasePoint (ON_2dPoint basepoint)
 
void SetBasePoint (ON_3dPoint point)
 
void SetPatternIndex (int index)
 
void SetPatternRotation (double rotation)
 
void SetPatternScale (double scale)
 
void SetPlane (const ON_Plane &plane)
 
ON_BOOL32 Transform (const ON_Xform &)
 
ON_BOOL32 Write (ON_BinaryArchive &) const
 
 ~ON_Hatch ()
 
- Public Member Functions inherited from ON_Geometry
ON_BoundingBox BoundingBox () const
 
virtual ON_BrepBrepForm (ON_Brep *brep=NULL) const
 
virtual void ClearBoundingBox ()
 
virtual ON_COMPONENT_INDEX ComponentIndex () const
 
virtual bool EvaluatePoint (const class ON_ObjRef &objref, ON_3dPoint &P) const
 
ON_BOOL32 GetBoundingBox (ON_3dPoint &bbox_min, ON_3dPoint &bbox_max, int bGrowBox=false) const
 
ON_BOOL32 GetBoundingBox (ON_BoundingBox &bbox, int bGrowBox=false) const
 
virtual ON_BOOL32 HasBrepForm () const
 
virtual bool IsDeformable () const
 
virtual bool IsMorphable () const
 
virtual bool MakeDeformable ()
 
virtual bool Morph (const ON_SpaceMorph &morph)
 
 ON_Geometry ()
 
 ON_Geometry (const ON_Geometry &)
 
ON_Geometryoperator= (const ON_Geometry &)
 
ON_BOOL32 Rotate (double rotation_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Rotate (double sin_angle, double cos_angle, const ON_3dVector &rotation_axis, const ON_3dPoint &rotation_center)
 
ON_BOOL32 Scale (double scale_factor)
 
virtual ON_BOOL32 SwapCoordinates (int i, int j)
 
ON_BOOL32 Translate (const ON_3dVector &translation_vector)
 
virtual ~ON_Geometry ()
 
- 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 ()
 
virtual ON_UUID ModelObjectId () const
 
void MoveUserData (ON_Object &source_object)
 
 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 ()
 

Protected Member Functions

class ON_HatchExtraHatchExtension ()
 

Protected Attributes

ON_SimpleArray< ON_HatchLoop * > m_loops
 
int m_pattern_index
 
double m_pattern_rotation
 
double m_pattern_scale
 
ON_Plane m_plane
 

Private Member Functions

 ON_OBJECT_DECLARE (ON_Hatch)
 

Additional Inherited Members

- Public Attributes inherited from ON_Object
ON_MEMORY_POOLm_mempool
 

Constructor & Destructor Documentation

◆ ON_Hatch() [1/2]

ON_Hatch::ON_Hatch ( )

◆ ON_Hatch() [2/2]

ON_Hatch::ON_Hatch ( const ON_Hatch & src)

◆ ~ON_Hatch()

ON_Hatch::~ON_Hatch ( )

Member Function Documentation

◆ AddLoop()

void ON_Hatch::AddLoop ( ON_HatchLoop * loop)

◆ BasePoint()

ON_3dPoint ON_Hatch::BasePoint ( ) const

◆ BasePoint2d()

ON_2dPoint ON_Hatch::BasePoint2d ( ) const

◆ Create()

bool ON_Hatch::Create ( const ON_Plane & plane,
const ON_SimpleArray< const ON_Curve * > loops,
int pattern_index,
double pattern_rotation,
double pattern_scale )

◆ Dimension()

int ON_Hatch::Dimension ( ) const
virtual

Implements ON_Geometry.

◆ Dump()

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

Reimplemented from ON_Object.

◆ DuplicateHatch()

ON_Hatch * ON_Hatch::DuplicateHatch ( ) const
virtual

◆ GetBBox()

ON_BOOL32 ON_Hatch::GetBBox ( double * bmin,
double * bmax,
ON_BOOL32 bGrowBox = false ) const
virtual

Implements ON_Geometry.

◆ GetTightBoundingBox()

bool ON_Hatch::GetTightBoundingBox ( ON_BoundingBox & tight_bbox,
int bGrowBox = false,
const ON_Xform * xform = 0 ) const
virtual

Reimplemented from ON_Geometry.

◆ HatchExtension()

class ON_HatchExtra * ON_Hatch::HatchExtension ( )
protected

◆ InsertLoop()

bool ON_Hatch::InsertLoop ( int index,
ON_HatchLoop * loop )

◆ IsValid()

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

Implements ON_Object.

◆ Loop()

const ON_HatchLoop * ON_Hatch::Loop ( int index) const

◆ LoopCount()

int ON_Hatch::LoopCount ( ) const

◆ LoopCurve3d()

ON_Curve * ON_Hatch::LoopCurve3d ( int index) const

◆ ObjectType()

ON::object_type ON_Hatch::ObjectType ( ) const
virtual

Reimplemented from ON_Object.

◆ ON_OBJECT_DECLARE()

ON_Hatch::ON_OBJECT_DECLARE ( ON_Hatch )
private

◆ operator=()

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

◆ PatternIndex()

int ON_Hatch::PatternIndex ( ) const

◆ PatternRotation()

double ON_Hatch::PatternRotation ( ) const

◆ PatternScale()

double ON_Hatch::PatternScale ( ) const

◆ Plane()

const ON_Plane & ON_Hatch::Plane ( ) const

◆ Read()

ON_BOOL32 ON_Hatch::Read ( ON_BinaryArchive & ar)
virtual

Reimplemented from ON_Object.

◆ RemoveLoop()

bool ON_Hatch::RemoveLoop ( int index)

◆ ReplaceLoops()

bool ON_Hatch::ReplaceLoops ( ON_SimpleArray< const ON_Curve * > loops)

◆ SetBasePoint() [1/2]

void ON_Hatch::SetBasePoint ( ON_2dPoint basepoint)

◆ SetBasePoint() [2/2]

void ON_Hatch::SetBasePoint ( ON_3dPoint point)

◆ SetPatternIndex()

void ON_Hatch::SetPatternIndex ( int index)

◆ SetPatternRotation()

void ON_Hatch::SetPatternRotation ( double rotation)

◆ SetPatternScale()

void ON_Hatch::SetPatternScale ( double scale)

◆ SetPlane()

void ON_Hatch::SetPlane ( const ON_Plane & plane)

◆ Transform()

ON_BOOL32 ON_Hatch::Transform ( const ON_Xform & xform)
virtual

Reimplemented from ON_Geometry.

◆ Write()

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

Reimplemented from ON_Object.

Member Data Documentation

◆ m_loops

ON_SimpleArray<ON_HatchLoop*> ON_Hatch::m_loops
protected

◆ m_pattern_index

int ON_Hatch::m_pattern_index
protected

◆ m_pattern_rotation

double ON_Hatch::m_pattern_rotation
protected

◆ m_pattern_scale

double ON_Hatch::m_pattern_scale
protected

◆ m_plane

ON_Plane ON_Hatch::m_plane
protected

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