Ceetron Data Provider Framework
Public Member Functions | List of all members
CDPGeometryInfo Class Referenceabstract

Public Member Functions

virtual void addElementGroupInfo (cdp_int_t partId, const CDPString &name)=0
 
virtual CDPElementGroupInfoaddElementGroupInfo ()=0
 
virtual void setHasAdaptiveGeometry (bool hasAdaptiveGeo)=0
 

Detailed Description

Contains information about one geometry.

A geometry contains one or more element groups and one or more node groups. The element groups can have individual node groups, or many element groups can share the same node group.

There are two ways to define what becomes "parts" in the host application from a data provider:

  1. Each element group becomes one part
  2. Each element group is split into one or more parts based on a per element assignment inside @ the group.

In the first case, each group becomes a part and the id and the name specified in the CDPGeometryInfo::addElementGroupInfo() is used for the part.

In the second case, you can add the element group info with the addElementGroupInfo() method (without parameters). You then add information about all the parts produced by this group with the CDPElementGroupInfo::addPartInfo() method.

There are two restrictions regarding part ids:

  1. Part ids must be unique within one geometry
  2. Part ids cannot span multiple element groups. So in the case of per element part subdivision, each element group must produce unique parts.

See CDPDataProvider::getGeometry() for more information about how geometries are used.

Member Function Documentation

void CDPGeometryInfo::addElementGroupInfo ( cdp_int_t  partId,
const CDPString name 
)
pure virtual

Add information about one element group.

By using this method, all the elements in the group will become one part in the host and it will have the given name and id.

CDPElementGroupInfo * CDPGeometryInfo::addElementGroupInfo ( )
pure virtual

Add information about one element group with sub-group part splitting

Use this method if you want to provide per element part assignment within this group. See description above for restrictions regarding use of part ids.

Use the CDPElementGroupInfo::addPartInfo() method to add meta data about each part produced from this group.

Per element part ids are provided with the CDPElementGroup::setElementPartIds() method.

void CDPGeometryInfo::setHasAdaptiveGeometry ( bool  hasAdaptiveGeo)
pure virtual

Specify if this geometry is adaptive or not.

If set to true, you will be asked to provide a CDPGeometry for each state in the analysis.

If set to false (default), the same geometry will be used for all states and you will only have to provide this once.


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