Ofcas.Lk.Api.Client - Version 3.0  3.0.0.103
Ofcas.Lk.Api.Client.Core.Elevation Class Reference

Elevation is the representation of a LogiKal element (for example, a window, a facade, ...). The children are of type ElevationInstance. The children can be received from the InfoList (CoreObject<T>.Infos). More...

Inheritance diagram for Ofcas.Lk.Api.Client.Core.Elevation:
Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Phase, ElevationInfo, ElevationInstance, ElevationInstanceInfo > Ofcas.Lk.Api.Client.Ui.ElevationUi

Public Member Functions

override OperationInfo CanEdit (string key, object value)
 Checks whether an elevation can be edited or not. More...
 
override ElevationInfo Edit (string key, object value)
 Edits an elevation based on a key and a value. More...
 
ElevationInstance GetElevationInstance (ElevationInstanceInfo elevationInstanceInfo)
 Returns the corresponding elevation instance based on the given information data. More...
 
virtual ElevationInstanceInfo CreateElevationInstance ()
 Currently not supported in non-UI mode. More...
 
virtual void DeleteElevationInstance (ElevationInstanceInfo elevationInstanceInfo)
 Currently not supported in non-UI mode. More...
 
void GetThumbnail (Stream target, GraphicSettings settings)
 An overview image from the elevation. The thumbnail will be returned as image file. More...
 
Stream GetDrawing (GraphicSettings settings)
 Returns a drawing from the elevation. Use Format in GraphicSettings to specify the format of the drawing. Currently supported are: More...
 
void GetGdz (Stream target, GdzSettings settings)
 Returns the gdz stream (as a zip-stream). More...
 
Stream Get3D (Settings3D settings)
 Returns the 3D definition from the current Elevation. Available formats are specified in "Public API Documentation" (Confluence). More...
 
Stream GetPartsList ()
 Returns the parts list of this Elevation as a sqlite file. More...
 
IList< ElevationEditModeGetAvailableElevationEditModes ()
 Returns a list of all available ElevationEditMode for the current Elevation. More...
 
int ElevationInstanceAmount ()
 Returns the amount of elevation instances. More...
 
ElevationInfo SetParameter (string key, object value)
 Takes the parameter to update the elevation. More...
 
override ElevationInstance GetChild (ElevationInstanceInfo childInfo)
 

Protected Member Functions

override CoreInfoResponse GetInfoResponse ()
 
virtual ElevationInstance CreateNewInstance (Guid coreObjectId, ElevationInstanceInfo elevationInstanceInfo)
 
ElevationInfo HandleElevationOperationStatusResponse (OperationStatusResponse response, string information)
 
- Protected Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Phase, ElevationInfo, ElevationInstance, ElevationInstanceInfo >
 CoreObjectFullyQualified (IApiService apiService, Guid coreObjectId, TParent parent, TOwnInfo ownInfo)
 Creates a new instance of CoreObjectFullyQualified<TParent,TOwnInfo,TChild,TChildInfo> with the given parameters. More...
 

Additional Inherited Members

- Properties inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Phase, ElevationInfo, ElevationInstance, ElevationInstanceInfo >
TParent Parent [get]
 
TOwnInfo CoreInfo [get, protected set]
 

Detailed Description

Elevation is the representation of a LogiKal element (for example, a window, a facade, ...). The children are of type ElevationInstance. The children can be received from the InfoList (CoreObject<T>.Infos).

Member Function Documentation

◆ CanEdit()

override OperationInfo Ofcas.Lk.Api.Client.Core.Elevation.CanEdit ( string  key,
object  value 
)
virtual

Checks whether an elevation can be edited or not.

Parameters
keyThe key of the value to be edited. See WellKnownEditKeys.Elevation for all available edit keys.
valueThe value to be set.
Returns

Reimplemented from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Phase, ElevationInfo, ElevationInstance, ElevationInstanceInfo >.

◆ CreateElevationInstance()

virtual ElevationInstanceInfo Ofcas.Lk.Api.Client.Core.Elevation.CreateElevationInstance ( )
virtual

Currently not supported in non-UI mode.

Exceptions
NotSupportedException

Reimplemented in Ofcas.Lk.Api.Client.Ui.ElevationUi.

◆ DeleteElevationInstance()

virtual void Ofcas.Lk.Api.Client.Core.Elevation.DeleteElevationInstance ( ElevationInstanceInfo  elevationInstanceInfo)
virtual

Currently not supported in non-UI mode.

Exceptions
NotSupportedException

Reimplemented in Ofcas.Lk.Api.Client.Ui.ElevationUi.

◆ Edit()

override ElevationInfo Ofcas.Lk.Api.Client.Core.Elevation.Edit ( string  key,
object  value 
)
virtual

Edits an elevation based on a key and a value.

Parameters
keyThe key of the value to be edited. See WellKnownEditKeys.Elevation for all available edit keys.
valueThe value to be set.
Returns
Returns an info object of the edited elevation.

Reimplemented from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< Phase, ElevationInfo, ElevationInstance, ElevationInstanceInfo >.

◆ ElevationInstanceAmount()

int Ofcas.Lk.Api.Client.Core.Elevation.ElevationInstanceAmount ( )

Returns the amount of elevation instances.

Returns
Amount of elevation instances

◆ Get3D()

Stream Ofcas.Lk.Api.Client.Core.Elevation.Get3D ( Settings3D  settings)

Returns the 3D definition from the current Elevation. Available formats are specified in "Public API Documentation" (Confluence).

Parameters
settingsunused
Returns
The content for the 3D definition is written in this stream. In case of the 3D definition is not available the length of the stream is zero.
Exceptions
ApiExceptionOccurs if the method fails.

◆ GetAvailableElevationEditModes()

IList<ElevationEditMode> Ofcas.Lk.Api.Client.Core.Elevation.GetAvailableElevationEditModes ( )

Returns a list of all available ElevationEditMode for the current Elevation.

Returns
List with all available elevation edit modes

◆ GetDrawing()

Stream Ofcas.Lk.Api.Client.Core.Elevation.GetDrawing ( GraphicSettings  settings)

Returns a drawing from the elevation. Use Format in GraphicSettings to specify the format of the drawing. Currently supported are:

DXF: Exports the File as dxf file

Use Parameters in GraphicSettings to specify the type and version of the drawing.

TYPE: Specify a ElevationDrawingType.

VERSION: Specify a DxfVersion if your export is a DXF drawing.

For section line drawings these parameters are needed:

STARTX: specifies the x-coordinate of the start position, value-type: double

STARTY: specifies the y-coordinate of the start position, value-type: double

ENDX: specifies the x-coordinate of the end position, value-type: double

ENDY: specifies the y-coordinate of the end position, value-type: double

WITHGLASS: specifies whether the section line shows the glass or not, value-type: bool

Parameters
settingsThe settings specifed for the drawing.

◆ GetElevationInstance()

ElevationInstance Ofcas.Lk.Api.Client.Core.Elevation.GetElevationInstance ( ElevationInstanceInfo  elevationInstanceInfo)

Returns the corresponding elevation instance based on the given information data.

Parameters
elevationInstanceInfoThe elevation instance information obtained through the CoreObject<T>.Infos function.
Returns
the ElevationInstance
Exceptions
ExceptionIf getting elevation instance failed.

◆ GetGdz()

void Ofcas.Lk.Api.Client.Core.Elevation.GetGdz ( Stream  target,
GdzSettings  settings 
)

Returns the gdz stream (as a zip-stream).

Parameters
targetThe gdz is written in this stream. If the elevation has no gdz, the lenght of target is zero.
settingsunused

◆ GetPartsList()

Stream Ofcas.Lk.Api.Client.Core.Elevation.GetPartsList ( )

Returns the parts list of this Elevation as a sqlite file.

Returns
The sqlite file of the parts list as a Stream.
Exceptions
ApiExceptionOccurs if the method fails.

◆ GetThumbnail()

void Ofcas.Lk.Api.Client.Core.Elevation.GetThumbnail ( Stream  target,
GraphicSettings  settings 
)

An overview image from the elevation. The thumbnail will be returned as image file.

Parameters
targetThe image file is written in this stream. If the elevation has no thumbnail, the lenght of target is zero.
settingsGraphicSettings.Format: defines the image format which will be returned "PNG", "JPG" or "EMF"

GraphicSettings.Parameters

Necessary parameters:

WIDTH: the width of the image in pixel

HEIGHT: the height of the image in pixel

Optional parameters:

SHOW_DIMENSIONS: TRUE or FALSE, enable or disable the output of dimensions

SHOW_DESCRIPTION: TRUE or FALSE, enable or disable the output of the description to the elevation

◆ SetParameter()

ElevationInfo Ofcas.Lk.Api.Client.Core.Elevation.SetParameter ( string  key,
object  value 
)

Takes the parameter to update the elevation.

Parameters
keyThe parameter key. Available keys are:

ELEVATION_STATUS: ElevationStatus. Changes the elevation status.

ELEVATION_NAME: string. Changes the elevation name.

ELEVATION_CLOUDURN: string. Changes the elevation cloud urn.

Parameters
valueThe value for the parameter.
Returns
Returns the updated ElevationInfo.
Exceptions
ExceptionOccurs if any exception occured.

The documentation for this class was generated from the following file: