C# Class Revit.SDK.Samples.CS.PointCloudEngine.XmlUtils

Utilities used by the sample to process XML entries in file-based point clouds.
Datei anzeigen Open project: AMEE/revit

Public Methods

Method Description
GetBoolean ( System.Xml.Linq.XElement element ) : bool

Gets a boolean value from an XML element.

GetColor ( System.Xml.Linq.XElement element ) : int

Gets a color value (in the form needed for inclusion in a CloudPoint) from an XML element.

GetColorXElement ( int color, String name ) : System.Xml.Linq.XElement

Gets the XML element representing a CloudPoint color.

GetDouble ( System.Xml.Linq.XElement element ) : double

Gets a double value from an XML element.

GetInteger ( System.Xml.Linq.XElement element ) : int

Gets an integer value from an XML element.

GetXElement ( XYZ point, String name ) : System.Xml.Linq.XElement

Gets the XML element representing a point.

GetXElement ( object obj, String name ) : System.Xml.Linq.XElement

Gets the XML element representing an object.

GetXYZ ( System.Xml.Linq.XElement element ) : XYZ

Gets an XYZ point from an XML element.

Method Details

GetBoolean() public static method

Gets a boolean value from an XML element.
public static GetBoolean ( System.Xml.Linq.XElement element ) : bool
element System.Xml.Linq.XElement The element.
return bool

GetColor() public static method

Gets a color value (in the form needed for inclusion in a CloudPoint) from an XML element.
public static GetColor ( System.Xml.Linq.XElement element ) : int
element System.Xml.Linq.XElement The element.
return int

GetColorXElement() public static method

Gets the XML element representing a CloudPoint color.
public static GetColorXElement ( int color, String name ) : System.Xml.Linq.XElement
color int The color.
name String The name.
return System.Xml.Linq.XElement

GetDouble() public static method

Gets a double value from an XML element.
public static GetDouble ( System.Xml.Linq.XElement element ) : double
element System.Xml.Linq.XElement The element.
return double

GetInteger() public static method

Gets an integer value from an XML element.
public static GetInteger ( System.Xml.Linq.XElement element ) : int
element System.Xml.Linq.XElement The element.
return int

GetXElement() public static method

Gets the XML element representing a point.
public static GetXElement ( XYZ point, String name ) : System.Xml.Linq.XElement
point XYZ The point.
name String The name of the XML element.
return System.Xml.Linq.XElement

GetXElement() public static method

Gets the XML element representing an object.
public static GetXElement ( object obj, String name ) : System.Xml.Linq.XElement
obj object The object.
name String The name.
return System.Xml.Linq.XElement

GetXYZ() public static method

Gets an XYZ point from an XML element.
public static GetXYZ ( System.Xml.Linq.XElement element ) : XYZ
element System.Xml.Linq.XElement The element.
return XYZ