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

Class which describes Measure coordinate system. More...

Inherits System::Object.

Classes

class  NumberFormat
 
class  NumberFormatList
 

Public Member Functions

System::String get_ScaleRatio ()
 A text string expressing the scale ratio of the drawing. More...
 
void set_ScaleRatio (System::String value)
 A text string expressing the scale ratio of the drawing. More...
 
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...
 
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...
 
System::SharedPtr< Measure::NumberFormatListget_YFormat ()
 A number format array for measurement of change along the y axis. More...
 
void set_YFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of change along the y axis. More...
 
System::SharedPtr< Measure::NumberFormatListget_DistanceFormat ()
 A number format array for measurement of distance in any direction. More...
 
void set_DistanceFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of distance in any direction. More...
 
System::SharedPtr< Measure::NumberFormatListget_AreaFormat ()
 A number format array for measurement of area. More...
 
void set_AreaFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of area. More...
 
System::SharedPtr< Measure::NumberFormatListget_AngleFormat ()
 A number format array for measurement of angles. More...
 
void set_AngleFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of angles. More...
 
System::SharedPtr< Measure::NumberFormatListget_SlopeFormat ()
 A number format array for measurement of the slope of a line. More...
 
void set_SlopeFormat (System::SharedPtr< Measure::NumberFormatList > value)
 A number format array for measurement of the slope of a line. More...
 
System::SharedPtr< Pointget_Origin ()
 Point that shall specify the origin of the measurement coordinate system in default user space coordinates. More...
 
void set_Origin (System::SharedPtr< Point > value)
 Point that shall specify the origin of the measurement coordinate system in default user space coordinates. More...
 
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...
 
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...
 
 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 refernce 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 int 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 (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. 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

System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfDictionary > get_EngineDict () const
 
 Measure (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 ~Measure ()
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. 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 ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Detailed Description

Class which describes Measure coordinate system.

Constructor & Destructor Documentation

◆ Measure() [1/2]

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::Annotations::Measure::~Measure ( )
protectedvirtual

Member Function Documentation

◆ get_AngleFormat()

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

A number format array for measurement of angles.

◆ get_AreaFormat()

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

A number format array for measurement of area.

◆ get_DistanceFormat()

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()

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()

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

A text string expressing the scale ratio of the drawing.

◆ get_SlopeFormat()

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

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

◆ get_XFormat()

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()

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()

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

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

◆ ReadXfdf()

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

◆ set_AngleFormat()

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

A number format array for measurement of angles.

◆ set_AreaFormat()

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

A number format array for measurement of area.

◆ set_DistanceFormat()

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()

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()

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

A text string expressing the scale ratio of the drawing.

◆ set_SlopeFormat()

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()

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()

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()

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