/*! Sets the type of presentation (vectors, deformed shape etc.)
* which will be generated by the method <VAR>generatePresentations</VAR>.
+ * \note \c addField() method should be called before in order to add field
+ * with number theFieldNum.
*/
void setPresentationType(in long theFieldNum, in VISUType theType);
/*! Gets the type of presentation (vectors, deformed shape etc.) which will
- * be generated by the method <VAR>generatePresentations</VAR>.
+ * be generated by the method <VAR>generatePresentations</VAR>.
+ * \note \c addField() method should be called before in order to add field
+ * with number theFieldNum.
*/
VISUType getPresentationType(in long theFieldNum);
return myFieldsLst[theField].myPrs[theFrame]->_this();
}
+//------------------------------------------------------------------------
+void VISU_TimeAnimation::setPresentationType(CORBA::Long theFieldNum, VISU::VISUType theType) {
+ if ( theFieldNum < 0 || theFieldNum >= myFieldsLst.size() )
+ return;
+
+ myFieldsLst[theFieldNum].myPrsType = theType;
+}
+
+//------------------------------------------------------------------------
+VISU::VISUType VISU_TimeAnimation::getPresentationType(CORBA::Long theFieldNum) {
+ if ( theFieldNum < 0 || theFieldNum >= myFieldsLst.size() )
+ return VISU::TNONE;
+
+ return myFieldsLst[theFieldNum].myPrsType;
+}
//------------------------------------------------------------------------
CORBA::Long VISU_TimeAnimation::getNbFrames() {
VISU::ColoredPrs3d_ptr getPresentation(CORBA::Long theField, CORBA::Long theFrame);
- void setPresentationType(CORBA::Long theFieldNum, VISU::VISUType theType)
- { myFieldsLst[theFieldNum].myPrsType = theType; }
- VISU::VISUType getPresentationType(CORBA::Long theFieldNum)
- { return myFieldsLst[theFieldNum].myPrsType; }
+ void setPresentationType(CORBA::Long theFieldNum, VISU::VISUType theType);
+ VISU::VISUType getPresentationType(CORBA::Long theFieldNum);
void setSpeed(CORBA::Long theSpeed);
CORBA::Long getSpeed() { return mySpeed; }