com.altair.hwm.beans.hm
Class HMBoundingBoxComm

java.lang.Object
  extended by com.altair.hwm.beans.hm.HMBoundingBoxComm

public class HMBoundingBoxComm
extends java.lang.Object

Title: HMBoundingBoxComm

Description: Does the actual communication with HM to calculate the bounding box

Company: Altair Engineering, Inc.


Constructor Summary
HMBoundingBoxComm(HWMCommMgr hwmCommMgr)
          Constructor
 
Method Summary
 java.util.Vector CalculateBoundingBox(java.lang.String strSessionName)
          This will perform the bounding box calculation, using a TCL proc passed with the CreateFunction command.
 java.lang.String GetTCLCodeForGetBBox()
          Creates TCL code for creating bounding box from given nodes
 java.lang.String GetTCLCodeForGetBBoxFromNodes()
          Creates TCL code for creating bounding box from given nodes
 java.lang.String GetTCLCodeForGetElems()
          Creates TCL code for getting the elements from the model
 java.lang.String GetTCLCodeForGetNodesFromElemList()
          Creates TCL code for Parsing elements
 java.lang.String GetTCLCodeForParseElems()
          Creates TCL code for Parsing elements
 java.lang.String GetTCLCodeForTesselate()
          Creates TCL code for Tesselating elements
 java.lang.String GetTCLCodeForUnTesselate()
          Creates TCL code for UnTesselating elements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMBoundingBoxComm

public HMBoundingBoxComm(HWMCommMgr hwmCommMgr)
Constructor

Parameters:
hwmCommMgr - The communication manager wqhich facilitates the communication with HM
Method Detail

GetTCLCodeForGetElems

public java.lang.String GetTCLCodeForGetElems()
Creates TCL code for getting the elements from the model

Returns:
String TCL code for the procedure

GetTCLCodeForTesselate

public java.lang.String GetTCLCodeForTesselate()
Creates TCL code for Tesselating elements

Returns:
String TCL code for the procedure

GetTCLCodeForUnTesselate

public java.lang.String GetTCLCodeForUnTesselate()
Creates TCL code for UnTesselating elements

Returns:
String TCL code for the procedure

GetTCLCodeForParseElems

public java.lang.String GetTCLCodeForParseElems()
Creates TCL code for Parsing elements

Returns:
String TCL code for the procedure

GetTCLCodeForGetNodesFromElemList

public java.lang.String GetTCLCodeForGetNodesFromElemList()
Creates TCL code for Parsing elements

Returns:
String TCL code for the procedure

GetTCLCodeForGetBBoxFromNodes

public java.lang.String GetTCLCodeForGetBBoxFromNodes()
Creates TCL code for creating bounding box from given nodes

Returns:
String TCL code for the procedure

GetTCLCodeForGetBBox

public java.lang.String GetTCLCodeForGetBBox()
Creates TCL code for creating bounding box from given nodes

Returns:
String TCL code for the procedure

CalculateBoundingBox

public java.util.Vector CalculateBoundingBox(java.lang.String strSessionName)
                                      throws java.lang.Exception
This will perform the bounding box calculation, using a TCL proc passed with the CreateFunction command. It will use the HMEvalTCLProcComm bean to perform this.

Parameters:
strSessionName -
Returns:
Vector containing Min and Max points in that order
Throws:
java.lang.Exception - thrown if the command fails. "getMessage" will give the description of the error that occured