MarkFoamSealedRoom

SUMMARY

Marking of a foam sealed room.

SYNTAX

MarkFoamSealedRoom(<class, affliction_type, context_figure, cur_file>);

ARGUMENTS

class (type:string)
The user defined Data-Object class administering the damage data. On clicking to it an instance of that class is created.

Such a class must have the following properties:

  • ContextFigure (String)
    The name of the figure for the context menu of the damage. The value is taken from the according argument of the InsertPlotSymbol-Jobs.
  • Display (String)
    The name of the picture the Plotsymbol was placed in.
  • RoomPolyName (String)
    The name of the selected section polygon. This value is handled internally.
  • DamageType
    This value is taken from the affliction_type argument of the MarkAfflictedSection-Jobs.
  • Room (String)
    The name of the room the damage occurred. This value is taken from the according property of the room polygon.
  • Created (Zeit)
    The time is automatically set on placing the symbol.

The Data-Object of the actual selected damage can be addresses via BDC.ActDamage.

affliction_type (type:string)
The damage type in the afflicted section.

There are the following types of affliction:

  • FoamSealed - foam sealed room
    This text is stored in the property ‘DamageType’ of the damage Data-Object and serves to draw the section after a picture change.

context_figure (type:string)
The figure (only the name, not the file) for the Context Menu. This text is saved to the property ‘ContextFigure’ of the damage Data-Object and is used to switch the figure for the Context Menu.
cur_file (type:string)
The file name for the cursor to display relative to the project folder. The file must be found in the project folder or a subdirectory to it. It is possible to have animated cursors.

DESCRIPTION

Effect
The mouse pointer turns into the defined cursor. Now the user may click into a room of the BDCRUN-Application in the right window. Hereupon for that section an according affliction_type flag is set. (at the moment for 'foam sealed' only)
If the fire color defined in the Bdc-Configuration is semi-transparent, the bitmap is displayed semi-transparent also.
Depending on the appropriate setting the context menu is switched. Marking a room and calling the according context menu can be repeated. (by pressing the button and clicking into the room)

EXAMPLES

Icon (Button) in the icon bar: (Action)

//The cursor is found in the subdirectory Cursors
MarkFoamSealedRoom("Foam_SealedRoom", "Foam_Sealed", "Foam_SealedContext", 
"Cursors\F_Sld.cur");

Places the figure for the Context Menu: (Refresh)
SetVal(Figure, BDC.ActDamage.ContextFigure);

Grafic Objects within the Context Menu Figure:
e.g. Displays the damage type in a text: (Refresh)
SetVal(Text, BDC.ActDamage.DamageType);


Syntax Notation
[aaa]
aaa is optional (zero or one occurences)
(aaa|bbb)
aaa exclusive or bbb
(aaa)*
aaa may occur indefinitely often or may be omitted
(aaa)+
aaa may occur indefinitely often but at least once
(aaa)m..n
aaa may occur from m to n times