VideoOS.Platform.Metadata.Shape Class Reference

This class is responsible for representing an ONVIF XML shape. More...

Inheritance diagram for VideoOS.Platform.Metadata.Shape:

Public Member Functions

override bool Equals (object obj)
 Provides value type equality semantics.
 
bool Equals (Shape other)
 Provides value type equality semantics.
 
override int GetHashCode ()
 object.GetHashCode
 
System.Xml.Schema.XmlSchema GetSchema ()
 IXmlSerializable.GetSchema
 
void ReadXml (XmlReader reader)
 IXmlSerializable.ReadXml
 
void WriteXml (XmlWriter writer)
 IXmlSerializable.WriteXml
 

Properties

Rectangle BoundingBox [get, set]
 Gets or sets the bounding box of the shape.
 
Vector CenterOfGravity [get, set]
 Gets or sets the CenterOfGravity of the shape.
 
bool IsValid [get]
 Gets whether the shape is valid according to the ONVIF standard, except that we also allow a missing CenterOfGravity. A valid shape has a bounding box defined (i.e different from null).
 

Detailed Description

This class is responsible for representing an ONVIF XML shape.

Member Function Documentation

◆ Equals() [1/2]

override bool VideoOS.Platform.Metadata.Shape.Equals ( object obj)
inline

Provides value type equality semantics.

◆ Equals() [2/2]

bool VideoOS.Platform.Metadata.Shape.Equals ( Shape other)
inline

Provides value type equality semantics.

◆ GetHashCode()

override int VideoOS.Platform.Metadata.Shape.GetHashCode ( )
inline

object.GetHashCode

◆ GetSchema()

System.Xml.Schema.XmlSchema VideoOS.Platform.Metadata.Shape.GetSchema ( )
inline

IXmlSerializable.GetSchema

◆ ReadXml()

void VideoOS.Platform.Metadata.Shape.ReadXml ( XmlReader reader)
inline

IXmlSerializable.ReadXml

◆ WriteXml()

void VideoOS.Platform.Metadata.Shape.WriteXml ( XmlWriter writer)
inline

IXmlSerializable.WriteXml

Property Documentation

◆ BoundingBox

Rectangle VideoOS.Platform.Metadata.Shape.BoundingBox
getset

Gets or sets the bounding box of the shape.

◆ CenterOfGravity

Vector VideoOS.Platform.Metadata.Shape.CenterOfGravity
getset

Gets or sets the CenterOfGravity of the shape.

◆ IsValid

bool VideoOS.Platform.Metadata.Shape.IsValid
get

Gets whether the shape is valid according to the ONVIF standard, except that we also allow a missing CenterOfGravity. A valid shape has a bounding box defined (i.e different from null).