DBmodifySegmentSettings

Top  Previous  Next

Segment change.

With this procedure the settings are changed in the segment. The data for changing are filed in the same structure in which they are also delivered by DBreturnSegmentSettings. It is possible to change single values in the segment. If all values should be changed, the value SEGMENT_MODIFY_ALL must be given as modifyFlags. But all Flags geodert which call a setting to be changed must become. Thus SEGMENT_MODIFY_BLATTTYP must be handed over if the sheet type should be changed. Changing the Selektierbarkeit can be also carried out about DBmodifySegmentSelectability. If the resolution is changed, the data are not converted. Already in this segment available data co-ordinates receive new (if necessary wrong). Changing the sheet type does not lead to another memory place for plans which are already loaded.

Parametre

segment (PSEGMENT) [IN]

The settings of the segment with this trading should be changed.

modifyFlags (int) [IN]

Every bit of these variables stands for a setting in which changes should be made. All bits which are put are considered. If SEGMENT_MODIFY_ALL is used, all settings are changed. Data of settings which should not be changed must not be valid.

settings (SEGMENT_SETTINGS *) [IN]

This pointer points at a structure on which all values to be changed are put down. The structure is identical with the structure which is filled by DBreturnSegmentSettings.

grade (int) [IN]

aloofly, must be 1. If further information is introduced, these become grades distinguished.

Result

(T_ERROR) [OUT]

The procedure delivers either ERROR_OK or one of the error messages from error.h.

Declaration

#include "database.h"

 

T_ERROR DLLENTRY DBmodifySegmentSettings (

PSEGMENT segment,

int modifyFlags,

SEGMENT_SETTINGS * settings,

int grades

);

Constants

#define SEGMENT_MODIFY_ID 1

#define SEGMENT_MODIFY_ISSELECTABLE 2

#define SEGMENT_MODIFY_BLATTTYP 4

#define SEGMENT_MODIFY_FLAGS 8

#define SEGMENT_MODIFY_ALL 15

Related functions

DBmodifyObjectSettings

DBmodifyPlanSettings

DBmodifyPointSettings

DBmodifyPointElementSettings

DBmodifyStringSettings

DBmodifySymbolSettings

DBmodifyTextSettings

DBmodifyTextString