|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGraph
Provides access to members that manage graphs.
The IGraph interface contains methods and properties which are used in conjunction with geometric networks. Many of the methods, such as Add, Init, Split and Merge are called internally from within other methods. For these methods, there may be an analogous method or series of methods available, consult the specific help file for that method.
The NetworkLoader object should be used for creating or building of geometric networks, in place of the Graph or GeometricNetwork objects.
Since IGeometricNetwork inherits from IGraph, all the methods on IGraph are available to IGeometricNetwork
IGeometricNetworkName
,
IGraph
,
IGraph.transformSet(com.esri.arcgis.system.ISet, int, com.esri.arcgis.geometry.IAffineTransformation2D)
,
IGeometricNetwork.addJunctionWithSubsumption(com.esri.arcgis.geodatabase.ISimpleJunctionFeature, int, com.esri.arcgis.geodatabase.ISimpleJunctionFeature)
,
IGraph.split(com.esri.arcgis.geodatabase.IEdgeFeature, com.esri.arcgis.geometry.IGeometry)
,
IGeometricNetwork
Method Summary | |
---|---|
void |
add(IFeature newFeature)
Adds the preexisting Feature to the graph. |
void |
addFeatureClass(IFeatureClass featureClass,
String enabledFieldName,
int role,
String ancillaryRoleFieldName)
Add the FeatureClass to this graph. |
void |
deleteSet(ISet featuresToDelete)
Removes the set of Feature from the graph. |
IDisplayFeedback |
getDisplayFeedback(IFeature feature,
ISet features,
IPoint point)
The DisplayFeedback. |
IFeatureDataset |
getFeatureDataset()
The FeatureDataset associated with the graph. |
void |
init(IFeatureDataset dataset,
int graphID,
String graphName,
boolean buildNormalizedTables,
boolean createGraph)
Initializes the graph. |
boolean |
isVertexBasedStretching()
The stretching model to nearest vertex (true) or junction (false) based stretching. |
IEnumFeature |
merge(IEnumFeature mergingFeatures)
Merges the Features together, returning the newly created Feature. |
void |
setVertexBasedStretching(boolean vertexBased)
The stretching model to nearest vertex (true) or junction (false) based stretching. |
ISet |
split(IEdgeFeature splittingEdge,
IGeometry point)
Split the feature. |
void |
transformSet(ISet features,
int type,
IAffineTransformation2D tranformation)
Repositions all specified NetworkFeatures and any topologically connected NetworkFeatures. |
Method Detail |
---|
void add(IFeature newFeature) throws IOException, AutomationException
The IGraph:Add method is meant for internal use only.
There is no need to call INetworkFeature::CreateNetworkElements or INetworkFeature::Connect as these are handled internally by IFeature::Store
newFeature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addFeatureClass(IFeatureClass featureClass, String enabledFieldName, int role, String ancillaryRoleFieldName) throws IOException, AutomationException
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)enabledFieldName
- The enabledFieldName (in)role
- A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant (in)ancillaryRoleFieldName
- The ancillaryRoleFieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deleteSet(ISet featuresToDelete) throws IOException, AutomationException
featuresToDelete
- A reference to a com.esri.arcgis.system.ISet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IWorkspaceEdit
,
ISpatialCacheManager
,
IWorkspaceEditEvents
,
Editor
,
IFeatureClass.createFeature()
IFeatureDataset getFeatureDataset() throws IOException, AutomationException
Returns a reference to the feature dataset in which the graph exists.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDisplayFeedback getDisplayFeedback(IFeature feature, ISet features, IPoint point) throws IOException, AutomationException
feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)features
- A reference to a com.esri.arcgis.system.ISet (in)point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void init(IFeatureDataset dataset, int graphID, String graphName, boolean buildNormalizedTables, boolean createGraph) throws IOException, AutomationException
The IGraph::Init method is called internally during the process of creating a Geometric Network and should be called independently.
dataset
- A reference to a com.esri.arcgis.geodatabase.IFeatureDataset (in)graphID
- The graphID (in)graphName
- The graphName (in)buildNormalizedTables
- The buildNormalizedTables (in)createGraph
- The createGraph (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumFeature merge(IEnumFeature mergingFeatures) throws IOException, AutomationException
The Merge method is not currently implemented.
mergingFeatures
- A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISet split(IEdgeFeature splittingEdge, IGeometry point) throws IOException, AutomationException
splittingEdge
- A reference to a com.esri.arcgis.geodatabase.IEdgeFeature (in)point
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGeometricNetworkName
,
IWorkspaceEdit
,
IGraph
,
ISpatialCacheManager
,
IGraph.transformSet(com.esri.arcgis.system.ISet, int, com.esri.arcgis.geometry.IAffineTransformation2D)
,
IGeometricNetwork.addJunctionWithSubsumption(com.esri.arcgis.geodatabase.ISimpleJunctionFeature, int, com.esri.arcgis.geodatabase.ISimpleJunctionFeature)
,
IWorkspaceEditEvents
,
IGraph.split(com.esri.arcgis.geodatabase.IEdgeFeature, com.esri.arcgis.geometry.IGeometry)
,
IGeometricNetwork
,
Editor
,
IFeatureClass.createFeature()
void transformSet(ISet features, int type, IAffineTransformation2D tranformation) throws IOException, AutomationException
TransformSet will maintain connectivity between network features, there is no need to call Connect or RebuildConnectivity after TransformSet to establish connectivity. The type of stretching that is employed during TransformSet can be changed using the VertexBasedStretching property.
features
- A reference to a com.esri.arcgis.system.ISet (in)type
- A com.esri.arcgis.geodatabase.esriTransformType constant (in)tranformation
- A reference to a com.esri.arcgis.geometry.IAffineTransformation2D (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IWorkspaceEdit
,
ISpatialCacheManager
,
IWorkspaceEditEvents
,
Editor
,
IFeatureClass.createFeature()
boolean isVertexBasedStretching() throws IOException, AutomationException
VertexBasedStretching controls the stretching model for the specified graph: vertex (true) or junction (false) based stretching. Vertex based stretching modifies features to the nearest vertex(es), while junction based stretching will proportionally modify the feature to the nearest junction(s).
The VertexBasedStretching property should be used to set or get the stretching model when edits are being made to the workspace using the IWorkspaceEdit interface. During an edit session in the Editor, VertexBasedStretching can be used to get the stretching model but cannot be used to set the stretching model. In this case IEditProperties::StretchGeometry overwrites VertexBasedStretching and should be used to set the desired stretching model.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkUpdate
,
IForwardStar
,
IGraph
,
INetworkClass.getNetworkAncillaryRole()
,
INetworkWorkspace
,
INetworkClass.getGeometricNetwork()
,
INetworkClass.getFieldToWeightMapping(int)
,
IUtilityNetwork
,
INetwork
void setVertexBasedStretching(boolean vertexBased) throws IOException, AutomationException
vertexBased
- The vertexBased (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkUpdate
,
IWorkspaceEdit
,
IForwardStar
,
ISpatialCacheManager
,
IGraph
,
INetworkClass.getNetworkAncillaryRole()
,
INetworkWorkspace
,
IWorkspaceEditEvents
,
INetworkClass.getGeometricNetwork()
,
Editor
,
INetworkClass.getFieldToWeightMapping(int)
,
IFeatureClass.createFeature()
,
IUtilityNetwork
,
INetwork
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |