Aspose::Slides::GeometryPath Class Referencefinal

Represents geometry path of GeometryShape More...

Inherits Aspose::Slides::IGeometryPath.

Public Member Functions

System::ArrayPtr< System::SharedPtr< IPathSegment > > get_PathData () override
 Returns geometry path of GeometryShape as an array of path segments. More...
 
PathFillModeType get_FillMode () override
 Sets fill mode More...
 
void set_FillMode (PathFillModeType value) override
 Sets fill mode More...
 
bool get_Stroke () override
 Sets stroke appearance More...
 
void set_Stroke (bool value) override
 Sets stroke appearance More...
 
 GeometryPath ()
 Creates instance of GeometryPath More...
 
void RemoveAt (int32_t index) override
 Removes segment at the specified index of the geometry path. More...
 
void LineTo (System::Drawing::PointF point) override
 Adds line to the end of the path More...
 
void LineTo (float x, float y) override
 Adds line to the end of the path More...
 
void LineTo (System::Drawing::PointF point, uint32_t index) override
 Adds line to the specified place of the path More...
 
void LineTo (float x, float y, uint32_t index) override
 Adds line to the specified place of the path More...
 
void CubicBezierTo (System::Drawing::PointF point1, System::Drawing::PointF point2, System::Drawing::PointF point3) override
 Adds cubic Bezier curve at the end the path More...
 
void CubicBezierTo (float x1, float y1, float x2, float y2, float x3, float y3) override
 Adds cubic Bezier curve at the end the path More...
 
void CubicBezierTo (System::Drawing::PointF point1, System::Drawing::PointF point2, System::Drawing::PointF point3, uint32_t index) override
 Adds cubic Bezier curve to the specified place of the path More...
 
void CubicBezierTo (float x1, float y1, float x2, float y2, float x3, float y3, uint32_t index) override
 Adds cubic Bezier curve to the specified place of the path More...
 
void QuadraticBezierTo (System::Drawing::PointF point1, System::Drawing::PointF point2) override
 Adds quadratic Bezier curve at the end the path More...
 
void QuadraticBezierTo (float x1, float y1, float x2, float y2) override
 Adds quadratic Bezier curve at the end the path More...
 
void QuadraticBezierTo (System::Drawing::PointF point1, System::Drawing::PointF point2, uint32_t index) override
 Adds quadratic Bezier curve to the specified place of the path More...
 
void QuadraticBezierTo (float x1, float y1, float x2, float y2, uint32_t index) override
 Adds quadratic Bezier curve to the specified place of the path More...
 
void CloseFigure () override
 Closes the current figure of this path More...
 
void MoveTo (System::Drawing::PointF point) override
 Sets next point position. More...
 
void MoveTo (float x, float y) override
 Sets next point position. More...
 
void ArcTo (float width, float heigth, float startAngle, float sweepAngle) override
 Appends the specified arc to the path. More...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

Represents geometry path of GeometryShape

Constructor & Destructor Documentation

◆ GeometryPath()

Aspose::Slides::GeometryPath::GeometryPath ( )

Creates instance of GeometryPath

Member Function Documentation

◆ ArcTo()

void Aspose::Slides::GeometryPath::ArcTo ( float  width,
float  heigth,
float  startAngle,
float  sweepAngle 
)
overridevirtual

Appends the specified arc to the path.

Parameters
widthWidth of the rectangle
heigthHeight of the rectangle
startAngleStart angle.
sweepAngleSweep angle/

Implements Aspose::Slides::IGeometryPath.

◆ CloseFigure()

void Aspose::Slides::GeometryPath::CloseFigure ( )
overridevirtual

Closes the current figure of this path

Implements Aspose::Slides::IGeometryPath.

◆ CubicBezierTo() [1/4]

void Aspose::Slides::GeometryPath::CubicBezierTo ( System::Drawing::PointF  point1,
System::Drawing::PointF  point2,
System::Drawing::PointF  point3 
)
overridevirtual

Adds cubic Bezier curve at the end the path

Parameters
point1First direction point
point2Second direction point
point3End point
Returns

Implements Aspose::Slides::IGeometryPath.

◆ CubicBezierTo() [2/4]

void Aspose::Slides::GeometryPath::CubicBezierTo ( float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3 
)
overridevirtual

Adds cubic Bezier curve at the end the path

Parameters
x1X coordinate of first direction point
y1Y coordinate of first direction point
x2X coordinate of second direction point
y2Y coordinate of second direction point
x3X coordinate of end point
y3Y coordinate of end point

Implements Aspose::Slides::IGeometryPath.

◆ CubicBezierTo() [3/4]

void Aspose::Slides::GeometryPath::CubicBezierTo ( System::Drawing::PointF  point1,
System::Drawing::PointF  point2,
System::Drawing::PointF  point3,
uint32_t  index 
)
overridevirtual

Adds cubic Bezier curve to the specified place of the path

Parameters
point1First direction point
point2Second direction point
point3End point
indexIndex of segment in PathData
Exceptions
System::ArgumentOutOfRangeExceptionSegment index is out of PathData range

Implements Aspose::Slides::IGeometryPath.

◆ CubicBezierTo() [4/4]

void Aspose::Slides::GeometryPath::CubicBezierTo ( float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
uint32_t  index 
)
overridevirtual

Adds cubic Bezier curve to the specified place of the path

Parameters
x1X coordinate of first direction point
y1Y coordinate of first direction point
x2X coordinate of second direction point
y2Y coordinate of second direction point
x3X coordinate of end point
y3Y coordinate of end point
indexIndex of segment in PathData
Exceptions
System::ArgumentOutOfRangeExceptionSegment index is out of PathData range

Implements Aspose::Slides::IGeometryPath.

◆ get_FillMode()

PathFillModeType Aspose::Slides::GeometryPath::get_FillMode ( )
overridevirtual

Sets fill mode

Implements Aspose::Slides::IGeometryPath.

◆ get_PathData()

System::ArrayPtr<System::SharedPtr<IPathSegment> > Aspose::Slides::GeometryPath::get_PathData ( )
overridevirtual

Returns geometry path of GeometryShape as an array of path segments.

Implements Aspose::Slides::IGeometryPath.

◆ get_Stroke()

bool Aspose::Slides::GeometryPath::get_Stroke ( )
overridevirtual

Sets stroke appearance

Implements Aspose::Slides::IGeometryPath.

◆ LineTo() [1/4]

void Aspose::Slides::GeometryPath::LineTo ( System::Drawing::PointF  point)
overridevirtual

Adds line to the end of the path

Parameters
pointEnd point of the line

Implements Aspose::Slides::IGeometryPath.

◆ LineTo() [2/4]

void Aspose::Slides::GeometryPath::LineTo ( float  x,
float  y 
)
overridevirtual

Adds line to the end of the path

Parameters
xX coordinate of the end point of the line
yY coordinate of the end point of the line

Implements Aspose::Slides::IGeometryPath.

◆ LineTo() [3/4]

void Aspose::Slides::GeometryPath::LineTo ( System::Drawing::PointF  point,
uint32_t  index 
)
overridevirtual

Adds line to the specified place of the path

Parameters
pointEnd point
indexIndex of segment in PathData
Exceptions
System::ArgumentOutOfRangeExceptionSegment index is out of PathData range

Implements Aspose::Slides::IGeometryPath.

◆ LineTo() [4/4]

void Aspose::Slides::GeometryPath::LineTo ( float  x,
float  y,
uint32_t  index 
)
overridevirtual

Adds line to the specified place of the path

Parameters
xX coordinate of the point
yY coordinate of the point
indexIndex of segment in PathData
Exceptions
System::ArgumentOutOfRangeExceptionSegment index is out of PathData range

Implements Aspose::Slides::IGeometryPath.

◆ MoveTo() [1/2]

void Aspose::Slides::GeometryPath::MoveTo ( System::Drawing::PointF  point)
overridevirtual

Sets next point position.

Parameters
pointPoint position

Implements Aspose::Slides::IGeometryPath.

◆ MoveTo() [2/2]

void Aspose::Slides::GeometryPath::MoveTo ( float  x,
float  y 
)
overridevirtual

Sets next point position.

Parameters
xX coordinate of the point
yY Coordinate of the point

Implements Aspose::Slides::IGeometryPath.

◆ QuadraticBezierTo() [1/4]

void Aspose::Slides::GeometryPath::QuadraticBezierTo ( System::Drawing::PointF  point1,
System::Drawing::PointF  point2 
)
overridevirtual

Adds quadratic Bezier curve at the end the path

Parameters
point1Direction point
point2End point
Returns

Implements Aspose::Slides::IGeometryPath.

◆ QuadraticBezierTo() [2/4]

void Aspose::Slides::GeometryPath::QuadraticBezierTo ( float  x1,
float  y1,
float  x2,
float  y2 
)
overridevirtual

Adds quadratic Bezier curve at the end the path

Parameters
x1X coordinate of direction point
y1Y coordinate of direction point
x2X coordinate of end point
y2Y coordinate of end point

Implements Aspose::Slides::IGeometryPath.

◆ QuadraticBezierTo() [3/4]

void Aspose::Slides::GeometryPath::QuadraticBezierTo ( System::Drawing::PointF  point1,
System::Drawing::PointF  point2,
uint32_t  index 
)
overridevirtual

Adds quadratic Bezier curve to the specified place of the path

Parameters
point1Direction point
point2End point
indexIndex of segment in PathData
Exceptions
System::ArgumentOutOfRangeExceptionSegment index is out of PathData range

Implements Aspose::Slides::IGeometryPath.

◆ QuadraticBezierTo() [4/4]

void Aspose::Slides::GeometryPath::QuadraticBezierTo ( float  x1,
float  y1,
float  x2,
float  y2,
uint32_t  index 
)
overridevirtual

Adds quadratic Bezier curve to the specified place of the path

Parameters
x1X coordinate of direction point
y1Y coordinate of direction point
x2X coordinate of end point
y2Y coordinate of end point
indexIndex of segment in PathData
Exceptions
System::ArgumentOutOfRangeExceptionSegment index is out of PathData range

Implements Aspose::Slides::IGeometryPath.

◆ RemoveAt()

void Aspose::Slides::GeometryPath::RemoveAt ( int32_t  index)
overridevirtual

Removes segment at the specified index of the geometry path.

Parameters
index

Implements Aspose::Slides::IGeometryPath.

◆ set_FillMode()

void Aspose::Slides::GeometryPath::set_FillMode ( PathFillModeType  value)
overridevirtual

Sets fill mode

Implements Aspose::Slides::IGeometryPath.

◆ set_Stroke()

void Aspose::Slides::GeometryPath::set_Stroke ( bool  value)
overridevirtual

Sets stroke appearance

Implements Aspose::Slides::IGeometryPath.