ICF 3.1.1.10
Technical documentation of ICF Libraries
i2d::CSplineSegment Class Reference

#include <CSplineSegment.h>

Inheritance diagram for i2d::CSplineSegment:
Collaboration diagram for i2d::CSplineSegment:

Public Member Functions

virtual i2d::CVector2d GetPointInSegment (double position) const
 Get point.
 
virtual i2d::CVector2d GetDerivationInSegment (double position) const
 Get derivation.
 
virtual i2d::CVector2d GetDerivationBegin () const
 Get derivation in begin point.
 
virtual i2d::CVector2d GetDerivationEnd () const
 Get derivation in end point.
 
virtual i2d::CVector2d GetPointBegin () const
 Get begin point.
 
virtual i2d::CVector2d GetPointEnd () const
 Get end point.
 
virtual i2d::CVector2d GetBezierPointBegin () const
 Get first Bezier's control point.
 
virtual i2d::CVector2d GetBezierPointEnd () const
 Get second Bezier's control point.
 
virtual bool IsCloserThan (const i2d::CVector2d position, double distance) const
 Check, if segment is closer than specifier distance.
 
virtual void GetHalfSegmentFirst (CSplineSegment &result) const
 Get a first half segment.
 
virtual void GetHalfSegmentSecond (CSplineSegment &result) const
 Get a second half segment.
 
const i2d::CVector2d & A () const
 
void A (const i2d::CVector2d &value)
 
const i2d::CVector2d & B () const
 
void B (const i2d::CVector2d &value)
 
const i2d::CVector2d & C () const
 
void C (const i2d::CVector2d &value)
 
const i2d::CVector2d & D () const
 
void D (const i2d::CVector2d &value)
 
int GetSupportedOperations () const override
 Get set of flags for supported operations.
 
bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
 
std::unique_ptr< istd::IChangeable > CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const override
 Make a copy of this object.
 
- Public Member Functions inherited from istd::IChangeable
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 Copy this object from another one.
 
virtual bool IsEqual (const IChangeable &object) const
 Compare this object with another object.
 
virtual bool ResetData (CompatibilityMode mode=CM_WITHOUT_REFS)
 Reset data to its default state.
 
virtual QMutex * GetChangesLock () const
 Get mutex beeing locked during changes, if available.
 
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction.
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction.
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes.
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes.
 

Additional Inherited Members

- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ICF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING ,
  CF_DELEGATED , CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 ,
  SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4 , SO_CHANGE_LOCK = 1 << 5
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 
- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSet & GetNoChanges ()
 Get empty set of changes.
 
static const ChangeSet & GetAnyChange ()
 Get anonymous change set.
 
static const ChangeSet & GetAllChanges ()
 Get anonymous change set.
 
static const ChangeSet & GetDelegatedChanges ()
 Get delegated change set.
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event.
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event.
 

Detailed Description

Definition at line 19 of file CSplineSegment.h.

Member Function Documentation

◆ A() [1/2]

const i2d::CVector2d & i2d::CSplineSegment::A ( ) const
inline

Definition at line 170 of file CSplineSegment.h.

◆ A() [2/2]

void i2d::CSplineSegment::A ( const i2d::CVector2d & value)
inline

Definition at line 176 of file CSplineSegment.h.

◆ B() [1/2]

const i2d::CVector2d & i2d::CSplineSegment::B ( ) const
inline

Definition at line 182 of file CSplineSegment.h.

◆ B() [2/2]

void i2d::CSplineSegment::B ( const i2d::CVector2d & value)
inline

Definition at line 188 of file CSplineSegment.h.

◆ C() [1/2]

const i2d::CVector2d & i2d::CSplineSegment::C ( ) const
inline

Definition at line 194 of file CSplineSegment.h.

◆ C() [2/2]

void i2d::CSplineSegment::C ( const i2d::CVector2d & value)
inline

Definition at line 200 of file CSplineSegment.h.

◆ CloneMe()

std::unique_ptr< istd::IChangeable > i2d::CSplineSegment::CloneMe ( CompatibilityMode mode = CM_WITHOUT_REFS) const
overridevirtual

Make a copy of this object.

You may check, if this functionality is supported over GetSupportedOperations().

Returns
new instance or nullptr, if this operation is not supported.

Reimplemented from istd::IChangeable.

◆ CopyFrom()

bool i2d::CSplineSegment::CopyFrom ( const IChangeable & object,
CompatibilityMode mode = CM_WITHOUT_REFS )
override

◆ D() [1/2]

const i2d::CVector2d & i2d::CSplineSegment::D ( ) const
inline

Definition at line 206 of file CSplineSegment.h.

◆ D() [2/2]

void i2d::CSplineSegment::D ( const i2d::CVector2d & value)
inline

Definition at line 212 of file CSplineSegment.h.

◆ GetBezierPointBegin()

i2d::CVector2d i2d::CSplineSegment::GetBezierPointBegin ( ) const
inlinevirtual

Get first Bezier's control point.

Definition at line 138 of file CSplineSegment.h.

◆ GetBezierPointEnd()

i2d::CVector2d i2d::CSplineSegment::GetBezierPointEnd ( ) const
inlinevirtual

Get second Bezier's control point.

Definition at line 144 of file CSplineSegment.h.

◆ GetDerivationBegin()

i2d::CVector2d i2d::CSplineSegment::GetDerivationBegin ( ) const
inlinevirtual

Get derivation in begin point.

Definition at line 114 of file CSplineSegment.h.

◆ GetDerivationEnd()

i2d::CVector2d i2d::CSplineSegment::GetDerivationEnd ( ) const
inlinevirtual

Get derivation in end point.

Definition at line 120 of file CSplineSegment.h.

◆ GetDerivationInSegment()

i2d::CVector2d i2d::CSplineSegment::GetDerivationInSegment ( double position) const
inlinevirtual

Get derivation.

Parameters
positionPosition in segment. Must be in range [0, 1], where 0 is begin, and 1 is end of segment.

Definition at line 108 of file CSplineSegment.h.

◆ GetHalfSegmentFirst()

void i2d::CSplineSegment::GetHalfSegmentFirst ( CSplineSegment & result) const
inlinevirtual

Get a first half segment.

Definition at line 150 of file CSplineSegment.h.

◆ GetHalfSegmentSecond()

void i2d::CSplineSegment::GetHalfSegmentSecond ( CSplineSegment & result) const
inlinevirtual

Get a second half segment.

Definition at line 159 of file CSplineSegment.h.

◆ GetPointBegin()

i2d::CVector2d i2d::CSplineSegment::GetPointBegin ( ) const
inlinevirtual

Get begin point.

Definition at line 126 of file CSplineSegment.h.

◆ GetPointEnd()

i2d::CVector2d i2d::CSplineSegment::GetPointEnd ( ) const
inlinevirtual

Get end point.

Definition at line 132 of file CSplineSegment.h.

◆ GetPointInSegment()

i2d::CVector2d i2d::CSplineSegment::GetPointInSegment ( double position) const
inlinevirtual

Get point.

Parameters
positionPosition in segment. Must be in range [0, 1], where 0 is begin, and 1 is end of segment.

Definition at line 102 of file CSplineSegment.h.

◆ GetSupportedOperations()

int i2d::CSplineSegment::GetSupportedOperations ( ) const
overridevirtual

Get set of flags for supported operations.

See also
SupportedOperations

Reimplemented from istd::IChangeable.

◆ IsCloserThan()

virtual bool i2d::CSplineSegment::IsCloserThan ( const i2d::CVector2d position,
double distance ) const
virtual

Check, if segment is closer than specifier distance.


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

© Witold Gantzke and Kirill Lepskiy