Book Contents | Master Index | Previous Chapter | Next Chapter
Search STEP Tools Web Support

3.1 Methods

The ISTviewEvents interface is the interface that the user program should implement to allow ST-Viewer send events to this program. ST-Viewer uses the connection points mechanism to connect to the implementation in the user program.

This interface has only methods and no properties. The following is the list of the ODL definitions for these methods.

void OnObjectDisplay(
	 long nID,
	 long nInstance,
	 short bDisplay
	 );

This method is called by ST-Viewer when an object is being displayed or hidden. The object is identified by its STEP entity ID (the nID argument) and the instance number ( nInstance ). A model can have several instances of the same STEP object, for example an assembly can have several parts that share the same geometry. The instances are counted starting from 1. The bDisplay argument is set to TRUE when the object is being displayed or FALSE when the object is being hidden.

void OnObjectSelect(
	 long nID,
	 long nInstance,
	 short bSelect
	 );

This method is called by the viewer when the selection state of an object changes. The object is identified by its STEP entity ID (the nID argument) and the instance number ( nInstance ). A model can have several instances of the same STEP object, for example an assembly can have several parts that share the same geometry. The instances are counted starting from 1. The bSelect argument is set to TRUE when the object is being selected or FALSE when the selection is being canceled.

| Book Contents | Master Index | ST-Developer Home | Previous Chapter | Next Chapter |