Aspose::Page::XPS::XpsModel::XpsPathGeometry Class Referencefinal

Class incapsulating PathGeometry property element features. This element contains a set of path figures specified either with the Figures attribute or with a child PathFigure element. More...

Inherits Aspose::Page::XPS::XpsModel::XpsArray< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > >, and Aspose::Page::XPS::XpsModel::ITransformableProperty.

Public Member Functions

ASPOSE_PAGE_SHARED_API XpsFillRule get_FillRule () const
 Returns/sets the value specifying how the intersecting areas of geometric shapes are combined to form a region. More...
 
ASPOSE_PAGE_SHARED_API void set_FillRule (XpsFillRule value)
 Returns/sets the value specifying how the intersecting areas of geometric shapes are combined to form a region. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XpsMatrixget_Transform () override
 Returns/sets the affine transformation matrix establishing the local matrix transformation that is applied to all child and descendant elements of the path geometry before it is used for filling, clipping, or stroking. More...
 
ASPOSE_PAGE_SHARED_API void set_Transform (System::SharedPtr< XpsMatrix > value) override
 Returns/sets the affine transformation matrix establishing the local matrix transformation that is applied to all child and descendant elements of the path geometry before it is used for filling, clipping, or stroking. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< XpsPathFigure > > > get_PathFigures ()
 Returns list of child path figures. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XpsPathSegmentAddSegment (System::SharedPtr< XpsPathSegment > segment)
 Adds a path segment to the list of child segments of the last pah figure. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XpsPathSegmentInsertSegment (int32_t index, System::SharedPtr< XpsPathSegment > segment)
 Inserts a path segment to the list of child segments of the last path figure at index position. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XpsPathSegmentRemoveSegment (System::SharedPtr< XpsPathSegment > segment)
 Removes a path segment from the list of child segments of the last path figure. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XpsPathSegmentRemoveSegmentAt (int32_t index)
 Removes a path segment from the list of child segments of the last path figure at index position. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XpsPathGeometryClone ()
 Clones this path geometry. More...
 
ASPOSE_PAGE_SHARED_API void SetTemplateWeakPtr (uint32_t argument) override
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
- Public Member Functions inherited from Aspose::Page::XPS::XpsModel::XpsArray< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > >
int32_t get_Count ()
 Returns number of elements. More...
 
System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigureAdd (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > obj)
 Adds a new object into array. More...
 
System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigureRemove (System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > obj)
 Removes an object from array. More...
 
System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigureInsert (int32_t index, System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > obj)
 Inserts a new object into array at specified position. More...
 
System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigureRemoveAt (int32_t index)
 Removes an object from array at specified position. More...
 
System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigureidx_get (int32_t i)
 Provides access to array's element by index i . More...
 
void SetTemplateWeakPtr (uint32_t argument) override
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
- Public Member Functions inherited from Aspose::Page::XPS::XpsModel::XpsObject
ASPOSE_PAGE_SHARED_API void AssertObject ()
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API 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...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

 XpsPathGeometry (System::SharedPtr< XpsContext > context, System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< XpsPathFigure >>> pathFigures)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsPathGeometry, CODEPORTING_ARGS(System::SharedPtr< XpsContext > context, System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< XpsPathFigure >>> pathFigures))
 
 XpsPathGeometry (System::SharedPtr< XpsContext > context)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsPathGeometry, CODEPORTING_ARGS(System::SharedPtr< XpsContext > context))
 
 XpsPathGeometry (System::SharedPtr< XpsContext > context, System::String abbreviatedGeometry)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsPathGeometry, CODEPORTING_ARGS(System::SharedPtr< XpsContext > context, System::String abbreviatedGeometry))
 
 XpsPathGeometry (System::SharedPtr< System::Xml::XmlNode > node, System::SharedPtr< XpsContext > context)
 Instatiates PathGeometry element from Data attribute or child element More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsPathGeometry, CODEPORTING_ARGS(System::SharedPtr< System::Xml::XmlNode > node, System::SharedPtr< XpsContext > context))
 
 XpsPathGeometry (System::SharedPtr< System::Xml::XmlElement > element, System::SharedPtr< XpsContext > context)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XpsPathGeometry, CODEPORTING_ARGS(System::SharedPtr< System::Xml::XmlElement > element, System::SharedPtr< XpsContext > context))
 
ASPOSE_PAGE_SHARED_API void Initialize (System::SharedPtr< System::Xml::XmlElement > element) override
 
ASPOSE_PAGE_SHARED_API void Load () override
 
ASPOSE_PAGE_SHARED_API void Accept (System::SharedPtr< XpsDocumentVisitor > visitor) override
 
ASPOSE_PAGE_SHARED_API void AcceptProperties (System::SharedPtr< XpsDocumentVisitor > visitor) override
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XpsObjectClone (bool deep, System::SharedPtr< XpsContext > context) override
 
ASPOSE_PAGE_SHARED_API void CopyPropertyValues (System::SharedPtr< XpsObject > obj) override
 
ASPOSE_PAGE_SHARED_API void ClonePropertyValues (System::SharedPtr< XpsObject > obj) override
 
ASPOSE_PAGE_SHARED_API void CopySimplePropertyValues (System::SharedPtr< XpsObject > obj) override
 
ASPOSE_PAGE_SHARED_API void Dispose () override
 
virtual ASPOSE_PAGE_SHARED_API ~XpsPathGeometry ()
 
- Protected Member Functions inherited from Aspose::Page::XPS::XpsModel::XpsArray< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > >
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > > > get_Array () const
 
 XpsArray (System::SharedPtr< XpsContext > context)
 
void CloneObjects (System::SharedPtr< XpsArray< System::SharedPtr< Aspose::Page::XPS::XpsModel::XpsPathFigure > >> array)
 
void Accept (System::SharedPtr< XpsDocumentVisitor > visitor) override
 
void Dispose () override
 
- Protected Member Functions inherited from Aspose::Page::XPS::XpsModel::XpsObject
int32_t get_Id () const
 
System::String get_RawValue () const
 Raw value of a property, i.e. the string attribute value More...
 
void set_RawValue (System::String value)
 Raw value of a property, i.e. the string attribute value More...
 
virtual ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::XpsModel::RegistrationType get_RegistrationType ()
 
void set_xKey (System::String value)
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< XpsObject > > > get_Owners ()
 
 XpsObject (System::SharedPtr< XpsContext > context)
 
virtual ASPOSE_PAGE_SHARED_API void NotifyDescendants (bool isAdd=true)
 
virtual ASPOSE_PAGE_SHARED_API void NotifyRoot (System::SharedPtr< XpsEvent > evt)
 

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...
 
- Protected Attributes inherited from Aspose::Page::XPS::XpsModel::XpsObject
System::WeakPtr< XpsContext_context
 

Detailed Description

Class incapsulating PathGeometry property element features. This element contains a set of path figures specified either with the Figures attribute or with a child PathFigure element.

Constructor & Destructor Documentation

◆ XpsPathGeometry() [1/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::XpsPathGeometry ( System::SharedPtr< XpsContext context,
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< XpsPathFigure >>>  pathFigures 
)
protected

◆ XpsPathGeometry() [2/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::XpsPathGeometry ( System::SharedPtr< XpsContext context)
protected

◆ XpsPathGeometry() [3/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::XpsPathGeometry ( System::SharedPtr< XpsContext context,
System::String  abbreviatedGeometry 
)
protected

◆ XpsPathGeometry() [4/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::XpsPathGeometry ( System::SharedPtr< System::Xml::XmlNode node,
System::SharedPtr< XpsContext context 
)
protected

Instatiates PathGeometry element from Data attribute or child element

Parameters
nodeAttribute node or child element node
contextContext

◆ XpsPathGeometry() [5/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::XpsPathGeometry ( System::SharedPtr< System::Xml::XmlElement element,
System::SharedPtr< XpsContext context 
)
protected

◆ ~XpsPathGeometry()

virtual ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::XpsModel::XpsPathGeometry::~XpsPathGeometry ( )
protectedvirtual

Member Function Documentation

◆ Accept()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::Accept ( System::SharedPtr< XpsDocumentVisitor visitor)
overrideprotectedvirtual

◆ AcceptProperties()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::AcceptProperties ( System::SharedPtr< XpsDocumentVisitor visitor)
overrideprotectedvirtual

◆ AddSegment()

ASPOSE_PAGE_SHARED_API System::SharedPtr<XpsPathSegment> Aspose::Page::XPS::XpsModel::XpsPathGeometry::AddSegment ( System::SharedPtr< XpsPathSegment segment)

Adds a path segment to the list of child segments of the last pah figure.

Parameters
segmentThe path segment to be added.
Returns
Added path segment.

◆ Clone() [1/2]

ASPOSE_PAGE_SHARED_API System::SharedPtr<XpsPathGeometry> Aspose::Page::XPS::XpsModel::XpsPathGeometry::Clone ( )

Clones this path geometry.

Returns
Clone of this path geometry.

◆ Clone() [2/2]

ASPOSE_PAGE_SHARED_API System::SharedPtr<XpsObject> Aspose::Page::XPS::XpsModel::XpsPathGeometry::Clone ( bool  deep,
System::SharedPtr< XpsContext context 
)
overrideprotectedvirtual

◆ ClonePropertyValues()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::ClonePropertyValues ( System::SharedPtr< XpsObject obj)
overrideprotectedvirtual

◆ CopyPropertyValues()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::CopyPropertyValues ( System::SharedPtr< XpsObject obj)
overrideprotectedvirtual

◆ CopySimplePropertyValues()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::CopySimplePropertyValues ( System::SharedPtr< XpsObject obj)
overrideprotectedvirtual

◆ Dispose()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::Dispose ( )
overrideprotectedvirtual

◆ get_FillRule()

ASPOSE_PAGE_SHARED_API XpsFillRule Aspose::Page::XPS::XpsModel::XpsPathGeometry::get_FillRule ( ) const

Returns/sets the value specifying how the intersecting areas of geometric shapes are combined to form a region.

◆ get_PathFigures()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsPathFigure> > > Aspose::Page::XPS::XpsModel::XpsPathGeometry::get_PathFigures ( )

Returns list of child path figures.

◆ get_Transform()

ASPOSE_PAGE_SHARED_API System::SharedPtr<XpsMatrix> Aspose::Page::XPS::XpsModel::XpsPathGeometry::get_Transform ( )
overridevirtual

Returns/sets the affine transformation matrix establishing the local matrix transformation that is applied to all child and descendant elements of the path geometry before it is used for filling, clipping, or stroking.

Implements Aspose::Page::XPS::XpsModel::ITransformableProperty.

◆ Initialize()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::Initialize ( System::SharedPtr< System::Xml::XmlElement element)
overrideprotectedvirtual

◆ InsertSegment()

ASPOSE_PAGE_SHARED_API System::SharedPtr<XpsPathSegment> Aspose::Page::XPS::XpsModel::XpsPathGeometry::InsertSegment ( int32_t  index,
System::SharedPtr< XpsPathSegment segment 
)

Inserts a path segment to the list of child segments of the last path figure at index position.

Parameters
indexPosition at which a segment should be inserted.
segmentA path segment to be inserted.
Returns
Inserted path segment.

◆ Load()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::Load ( )
overrideprotectedvirtual

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsPathGeometry  ,
CODEPORTING_ARGS(System::SharedPtr< XpsContext > context, System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< XpsPathFigure >>> pathFigures)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsPathGeometry  ,
CODEPORTING_ARGS(System::SharedPtr< XpsContext > context)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [3/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsPathGeometry  ,
CODEPORTING_ARGS(System::SharedPtr< XpsContext > context, System::String abbreviatedGeometry)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [4/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsPathGeometry  ,
CODEPORTING_ARGS(System::SharedPtr< System::Xml::XmlNode > node, System::SharedPtr< XpsContext > context)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [5/5]

Aspose::Page::XPS::XpsModel::XpsPathGeometry::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XpsPathGeometry  ,
CODEPORTING_ARGS(System::SharedPtr< System::Xml::XmlElement > element, System::SharedPtr< XpsContext > context)   
)
protected

◆ RemoveSegment()

ASPOSE_PAGE_SHARED_API System::SharedPtr<XpsPathSegment> Aspose::Page::XPS::XpsModel::XpsPathGeometry::RemoveSegment ( System::SharedPtr< XpsPathSegment segment)

Removes a path segment from the list of child segments of the last path figure.

Parameters
segmentThe path segment to be removed.
Returns
Removed path segment.

◆ RemoveSegmentAt()

ASPOSE_PAGE_SHARED_API System::SharedPtr<XpsPathSegment> Aspose::Page::XPS::XpsModel::XpsPathGeometry::RemoveSegmentAt ( int32_t  index)

Removes a path segment from the list of child segments of the last path figure at index position.

Parameters
indexPosition at which a path segment should be removed.
Returns
Removed path segment.

◆ set_FillRule()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::set_FillRule ( XpsFillRule  value)

Returns/sets the value specifying how the intersecting areas of geometric shapes are combined to form a region.

◆ set_Transform()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::set_Transform ( System::SharedPtr< XpsMatrix value)
overridevirtual

Returns/sets the affine transformation matrix establishing the local matrix transformation that is applied to all child and descendant elements of the path geometry before it is used for filling, clipping, or stroking.

Implements Aspose::Page::XPS::XpsModel::ITransformableProperty.

◆ SetTemplateWeakPtr()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::XpsModel::XpsPathGeometry::SetTemplateWeakPtr ( uint32_t  argument)
overridevirtual

Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.

Parameters
argumentIndex of template argument to treat as weak poiner.

Reimplemented from System::Object.