示例#1
0
// doc from parent
void
SmTextureText2::initClass(void)
{
  if (getClassTypeId() == SoType::badType()) {
    SO_NODE_INIT_CLASS(SmTextureText2, SoShape, "Shape");
  }
}
void 
SoItkConvertItkImageToXipImage::initClass()
{
	SO_ENGINE_INIT_CLASS( SoItkConvertItkImageToXipImage, SoFieldConverter, "SoFieldConverter" );

	// Register this converter's type with the Inventor database
	//
	SoDB::addConverter( SoItkSFDataImage::getClassTypeId(),
		SoXipSFDataImage::getClassTypeId(),
		getClassTypeId() );
}
void SoXipConvertSFDicomToMFDicom::initClass()
{
    SO_ENGINE_INIT_CLASS(SoXipConvertSFDicomToMFDicom,
                         SoFieldConverter, "FieldConverter");

    // Register this converter's type with the Inventor database
    // to convert from a field (or engine output) of type
    // SoSFShort to a field of type SoSFFloat.
    // We only call this once, since this engine offers only one
    // type conversion.
    SoDB::addConverter(SoXipSFDataDicom::getClassTypeId(),
                       SoXipMFDataDicom::getClassTypeId(),
                       getClassTypeId());
}