I3DMLFeatureProperties80
This interface gets and sets the value of specific properties for all the features in the 3DML’s feature layer.
|
Properties |
|
|
Gets and sets the ID of the message object for all the features in the 3DML’s feature layer. |
|
|
An IColor80 representing the tint color for all the features in the 3DML’s feature layer. |
|
|
An ITooltip80 that provides access to the tooltip object’s text property for all the features in the 3DML’s feature layer. |
|
|
Methods |
|
|
Returns the classification XML of a specified property of the 3DML’s feature layer. |
|
|
Indicates if a classification XML was set for a specified property of the 3DML’s feature layer. |
|
|
Sets a classification XML for a specified property of the 3DML’s feature layer. |
MessageID
Gets and sets the ID of the message object for all the layer’s features.
JavaScript |
|
MessageID |
C# |
|
string MessageID { get; set; } |
C++ |
|
HRESULT MessageID([out, retval] BSTR* pVal) HRESULT MessageID([in] BSTR pVal); |
GetClassification
This method returns the classification XML for a specified property of the 3DML’s feature layer.
JavaScript |
|
GetClassification( Name) |
C# |
|
string GetClassification( string Name) |
C++ |
|
HRESULT GetClassification( BSTR Name, BSTR* pValue) |
Parameters
Name
The name of the property. The parameter can be a name of any property field as it appears in the Layer property sheet in TerraExplorer (e.g., “Line Color”).
Return Value
pValue
The value of the property. This parameter can be a classification XML. See: the SetClassification method description.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.
IsClassified
This method indicates if a classification XML was set for a specified property of the 3DML’s feature layer.
JavaScript |
|
IsClassified( Name) |
C# |
|
bool IsClassified( string Name) |
C++ |
|
HRESULT IsClassified( BSTR Name, VARIANT_BOOL* pValue) |
Parameters
Name
The name of the property to be checked. This parameter can be a name of any property field as it appears in the Layer property sheet in TerraExplorer (e.g., “Line Color”).
Return Value
pValue
A Boolean indicating whether a classification XML was set for the specified property.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.
SetClassification
This method sets the classification XML for a specified property of the 3DML’s feature layer.
Classification XML is used for persistence of a classification which is defined in the TerraExplorer Pro GUI. When a classification is defined using the Field by Attribute dialog box, you can use GetClassification to retrieve an XML that defines this classification. See “Feature Layers” chapter in the User Manual.
JavaScript |
|
SetClassification( Name, Value) |
C# |
|
void SetClassification( string Name, string Value) |
C++ |
|
HRESULT SetClassification( BSTR Name, BSTR Value) |
Parameters
Name
The name of the property to be set. The parameter can be a name of any property field as it appears in the Layer property sheet in TerraExplorer (e.g., “Line Color”).
Value
The value of the property. This parameter can be a classification XML.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.