Aspose::Pdf::Annotations::Measure Class Reference

Class which describes Measure coordinate system. More...

#include "Measure.h"

Inherits System::Object.

Classes

class  NumberFormat
 Number format for measure. More...
 
class  NumberFormatList
 Represents list of number formats. More...
 

Public Member Functions

ASPOSE_PDF_SHARED_API System::String get_ScaleRatio ()
 A text string expressing the scale ratio of the drawing. More...
 
ASPOSE_PDF_SHARED_API void set_ScaleRatio (System::String value)
 A text string expressing the scale ratio of the drawing. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Measure::NumberFormatListget_XFormat ()
 A number format array for measurement of change along the xaxis and, if Y is not present, along the y axis as well More...
 
ASPOSE_PDF_SHARED_API void set_XFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of change along the xaxis and, if Y is not present, along the y axis as well More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Measure::NumberFormatListget_YFormat ()
 A number format array for measurement of change along the y axis. More...
 
ASPOSE_PDF_SHARED_API void set_YFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of change along the y axis. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Measure::NumberFormatListget_DistanceFormat ()
 A number format array for measurement of distance in any direction. More...
 
ASPOSE_PDF_SHARED_API void set_DistanceFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of distance in any direction. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Measure::NumberFormatListget_AreaFormat ()
 A number format array for measurement of area. More...
 
ASPOSE_PDF_SHARED_API void set_AreaFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of area. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Measure::NumberFormatListget_AngleFormat ()
 A number format array for measurement of angles. More...
 
ASPOSE_PDF_SHARED_API void set_AngleFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of angles. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Measure::NumberFormatListget_SlopeFormat ()
 A number format array for measurement of the slope of a line. More...
 
ASPOSE_PDF_SHARED_API void set_SlopeFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of the slope of a line. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Pointget_Origin ()
 Point that shall specify the origin of the measurement coordinate system in default user space coordinates. More...
 
ASPOSE_PDF_SHARED_API void set_Origin (System::SharedPtr< Point > value)
 Point that shall specify the origin of the measurement coordinate system in default user space coordinates. More...
 
ASPOSE_PDF_SHARED_API double get_XYFactor ()
 A factor that shall be used to convert the largest units along the y axis to the largest units along the x axis. More...
 
ASPOSE_PDF_SHARED_API void set_XYFactor (double value)
 A factor that shall be used to convert the largest units along the y axis to the largest units along the x axis. More...
 
ASPOSE_PDF_SHARED_API Measure (System::SharedPtr< Annotation > annotation)
 Creates Measure object for measure annotations. More...
 
- 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 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 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)
 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...
 

Protected Member Functions

System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfDictionary > get_EngineDict () const
 
 Measure (System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfDictionary > dictionary)
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Measure, CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfDictionary > dictionary))
 
void WriteXfdfAttributes (System::SharedPtr< System::Xml::XmlWriter > writer)
 
void ReadXfdf (System::SharedPtr< System::Xml::XmlReader > reader)
 
virtual ASPOSE_PDF_SHARED_API ~Measure ()
 

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

Class which describes Measure coordinate system.

Constructor & Destructor Documentation

◆ Measure() [1/2]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Annotations::Measure::Measure ( System::SharedPtr< Annotation annotation)

Creates Measure object for measure annotations.

Parameters
annotationAnnotation for which measure will be bound.

◆ Measure() [2/2]

Aspose::Pdf::Annotations::Measure::Measure ( System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfDictionary >  dictionary)
protected

◆ ~Measure()

virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::Annotations::Measure::~Measure ( )
protectedvirtual

Member Function Documentation

◆ get_AngleFormat()

ASPOSE_PDF_SHARED_API System::SharedPtr<Measure::NumberFormatList> Aspose::Pdf::Annotations::Measure::get_AngleFormat ( )

A number format array for measurement of angles.

◆ get_AreaFormat()

ASPOSE_PDF_SHARED_API System::SharedPtr<Measure::NumberFormatList> Aspose::Pdf::Annotations::Measure::get_AreaFormat ( )

A number format array for measurement of area.

◆ get_DistanceFormat()

ASPOSE_PDF_SHARED_API System::SharedPtr<Measure::NumberFormatList> Aspose::Pdf::Annotations::Measure::get_DistanceFormat ( )

A number format array for measurement of distance in any direction.

◆ get_EngineDict()

System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfDictionary> Aspose::Pdf::Annotations::Measure::get_EngineDict ( ) const
protected

◆ get_Origin()

ASPOSE_PDF_SHARED_API System::SharedPtr<Point> Aspose::Pdf::Annotations::Measure::get_Origin ( )

Point that shall specify the origin of the measurement coordinate system in default user space coordinates.

◆ get_ScaleRatio()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Annotations::Measure::get_ScaleRatio ( )

A text string expressing the scale ratio of the drawing.

◆ get_SlopeFormat()

ASPOSE_PDF_SHARED_API System::SharedPtr<Measure::NumberFormatList> Aspose::Pdf::Annotations::Measure::get_SlopeFormat ( )

A number format array for measurement of the slope of a line.

◆ get_XFormat()

ASPOSE_PDF_SHARED_API System::SharedPtr<Measure::NumberFormatList> Aspose::Pdf::Annotations::Measure::get_XFormat ( )

A number format array for measurement of change along the xaxis and, if Y is not present, along the y axis as well

◆ get_XYFactor()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Annotations::Measure::get_XYFactor ( )

A factor that shall be used to convert the largest units along the y axis to the largest units along the x axis.

◆ get_YFormat()

ASPOSE_PDF_SHARED_API System::SharedPtr<Measure::NumberFormatList> Aspose::Pdf::Annotations::Measure::get_YFormat ( )

A number format array for measurement of change along the y axis.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION()

Aspose::Pdf::Annotations::Measure::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Measure  ,
CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfDictionary > dictionary)   
)
protected

◆ ReadXfdf()

void Aspose::Pdf::Annotations::Measure::ReadXfdf ( System::SharedPtr< System::Xml::XmlReader reader)
protected

◆ set_AngleFormat()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Annotations::Measure::set_AngleFormat ( System::SharedPtr< Measure::NumberFormatList value)

A number format array for measurement of angles.

◆ set_AreaFormat()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Annotations::Measure::set_AreaFormat ( System::SharedPtr< Measure::NumberFormatList value)

A number format array for measurement of area.

◆ set_DistanceFormat()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Annotations::Measure::set_DistanceFormat ( System::SharedPtr< Measure::NumberFormatList value)

A number format array for measurement of distance in any direction.

◆ set_Origin()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Annotations::Measure::set_Origin ( System::SharedPtr< Point value)

Point that shall specify the origin of the measurement coordinate system in default user space coordinates.

◆ set_ScaleRatio()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Annotations::Measure::set_ScaleRatio ( System::String  value)

A text string expressing the scale ratio of the drawing.

◆ set_SlopeFormat()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Annotations::Measure::set_SlopeFormat ( System::SharedPtr< Measure::NumberFormatList value)

A number format array for measurement of the slope of a line.

◆ set_XFormat()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Annotations::Measure::set_XFormat ( System::SharedPtr< Measure::NumberFormatList value)

A number format array for measurement of change along the xaxis and, if Y is not present, along the y axis as well

◆ set_XYFactor()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Annotations::Measure::set_XYFactor ( double  value)

A factor that shall be used to convert the largest units along the y axis to the largest units along the x axis.

◆ set_YFormat()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Annotations::Measure::set_YFormat ( System::SharedPtr< Measure::NumberFormatList value)

A number format array for measurement of change along the y axis.

◆ WriteXfdfAttributes()

void Aspose::Pdf::Annotations::Measure::WriteXfdfAttributes ( System::SharedPtr< System::Xml::XmlWriter writer)
protected