void PMText::readAttributes( const PMXMLHelper& h ) { m_font = h.stringAttribute( "font", c_defaultFont ); m_text = h.stringAttribute( "text", c_defaultText ); m_thickness = h.doubleAttribute( "thickness", c_defaultThickness ); m_offset = h.vectorAttribute( "offset", c_defaultOffset ); Base::readAttributes( h ); }
void PMNormal::readAttributes( const PMXMLHelper& h ) { Base::readAttributes( h ); m_enableBumpSize = h.boolAttribute( "enable_bump_size", false ); m_bumpSize = h.doubleAttribute( "bump_size", bumpSizeDefault ); m_accuracy = h.doubleAttribute( "accuracy", accuracyDefault ); m_uvMapping = h.boolAttribute( "uv_mapping", false ); }
void PMTorus::readAttributes( const PMXMLHelper& h ) { m_minorRadius = h.doubleAttribute( "minor_radius", c_defaultminorRadius ); m_majorRadius = h.doubleAttribute( "major_radius", c_defaultmajorRadius ); m_sturm = h.boolAttribute( "sturm", c_defaultsturm ); Base::readAttributes( h ); }
void PMCone::readAttributes( const PMXMLHelper & h ) { m_end1 = h.vectorAttribute( "end_a", defaultEnd1 ); m_end2 = h.vectorAttribute( "end_b", defaultEnd2 ); m_radius1 = h.doubleAttribute( "radius_a", defaultConeRadius1 ); m_radius2 = h.doubleAttribute( "radius_b", defaultConeRadius2 ); m_open = h.boolAttribute( "open", defaultOpen ); Base::readAttributes( h ); }
void PMListPattern::readAttributes( const PMXMLHelper& h ) { QString str = h.stringAttribute( "listtype", "checker" ); if( str == "checker" ) m_listType = ListPatternChecker; else if( str == "brick" ) m_listType = ListPatternBrick; else m_listType = ListPatternHexagon; m_brickSize = h.vectorAttribute( "bricksize", brickSizeDefault ); m_mortar = h.doubleAttribute( "mortar", mortarDefault ); Base::readAttributes( h ); }
void PMMaterialMap::readAttributes( const PMXMLHelper& h ) { QString str; str = h.stringAttribute( "bitmap_type", "sys" ); if( str == "gif" ) m_bitmapType = BitmapGif; else if( str == "tga" ) m_bitmapType = BitmapTga; else if( str == "iff" ) m_bitmapType = BitmapIff; else if( str == "ppm" ) m_bitmapType = BitmapPpm; else if( str == "pgm" ) m_bitmapType = BitmapPgm; else if( str == "png" ) m_bitmapType = BitmapPng; else if( str == "jpeg" ) m_bitmapType = BitmapJpeg; else if( str == "tiff" ) m_bitmapType = BitmapTiff; else if( str == "sys" ) m_bitmapType = BitmapSys; m_bitmapFile = h.stringAttribute( "file_name", bitmapFileDefault ); m_once = h.boolAttribute( "once", onceDefault ); str = h.stringAttribute( "map_type", "planar" ); if( str == "planar" ) m_mapType = MapPlanar; else if( str == "spherical" ) m_mapType = MapSpherical; else if( str == "cylindrical" ) m_mapType = MapCylindrical; else if( str == "toroidal" ) m_mapType = MapToroidal; str = h.stringAttribute( "interpolate", "none" ); if( str == "none" ) m_interpolateType = InterpolateNone; else if( str == "bilinear" ) m_interpolateType = InterpolateBilinear; else if( str == "normalized" ) m_interpolateType = InterpolateNormalized; Base::readAttributes( h ); }
void PMJuliaFractal::readAttributes( const PMXMLHelper& h ) { m_juliaParameter = h.vectorAttribute( "julia_parameter", c_defaultJuliaParameter ); m_algebraType = stringToAlgebraType( h.stringAttribute( "algebra_type", c_defaultAlgebraString ) ); m_functionType = stringToFunctionType( h.stringAttribute( "function_type", c_defaultFunctionString ) ); m_maxIterations = h.intAttribute( "max_iterations", c_defaultMaxIterations ); m_precision = h.doubleAttribute( "precision", c_defaultPrecision ); m_sliceNormal = h.vectorAttribute( "slice_normal", c_defaultSliceNormal ); m_sliceDistance = h.doubleAttribute( "slice_distance", c_defaultSliceDistance ); m_exponent = h.vectorAttribute( "exponent", c_defaultExponent ); Base::readAttributes( h ); }
void PMRaw::readAttributes( const PMXMLHelper& h ) { QDomNode e = h.element( ).firstChild( ); if( e.isText( ) ) m_code = e.toText( ).data( ); }
void PMTranslate::readAttributes( const PMXMLHelper& h ) { m_move = h.vectorAttribute( "value", moveDefault ); }
void PMDetailObject::readAttributes( const PMXMLHelper& h ) { m_globalDetail = h.boolAttribute( "global_detail", c_defaulGlobalDetail ); m_localDetailLevel = h.intAttribute( "local_detail_level", c_defaultLocalDetailLevel ); Base::readAttributes( h ); }
void PMTextureMapBase::readAttributes( const PMXMLHelper& h ) { stringToValues( h.stringAttribute( "map_values", "" ) ); Base::readAttributes( h ); }
void PMSuperquadricEllipsoid::readAttributes( const PMXMLHelper& h ) { m_eastWestExponent = h.doubleAttribute( "value_e", c_defaultEastWestExponent ); m_northSouthExponent = h.doubleAttribute( "value_n", c_defaultNorthSouthExponent ); Base::readAttributes( h ); }
void PMPigment::readAttributes( const PMXMLHelper& h ) { m_uvMapping = h.boolAttribute( "uv_mapping", false ); Base::readAttributes( h ); }
void PMNormalList::readAttributes( const PMXMLHelper& h ) { m_depth = h.doubleAttribute( "depth", depthDefault ); Base::readAttributes( h ); }
void PMSlope::readAttributes( const PMXMLHelper& h ) { m_height = h.doubleAttribute( "height", heightDefault ); m_slope = h.doubleAttribute( "slope", slopeDefault ); }
void PMFinish::readAttributes( const PMXMLHelper& h ) { Base::readAttributes( h ); m_enableAmbient = h.boolAttribute( "enable_ambient", false ); m_enableDiffuse = h.boolAttribute( "enable_diffuse", false ); m_enableBrilliance = h.boolAttribute( "enable_brilliance", false ); m_enableCrand = h.boolAttribute( "enable_crand", false ); m_enablePhong = h.boolAttribute( "enable_phong", false ); m_enablePhongSize = h.boolAttribute( "enable_phong_size", false ); m_enableMetallic = h.boolAttribute( "enable_metallic", false ); m_enableSpecular = h.boolAttribute( "enable_specular", false ); m_enableRoughness = h.boolAttribute( "enable_roughness", false ); m_enableReflection = h.boolAttribute( "enable_reflection", false ); m_enableReflectionMin = h.boolAttribute( "enable_reflection_min", false ); m_enableRefFalloff = h.boolAttribute( "enable_reflection_falloff", false ); m_enableRefExponent = h.boolAttribute( "enable_reflection_exponent", false ); m_enableRefMetallic = h.boolAttribute( "enable_reflection_metallic", false ); m_irid = h.boolAttribute( "irid", false ); m_ambientColor = h.colorAttribute( "ambient", ambientColorDefault ); m_diffuse = h.doubleAttribute( "diffuse", diffuseDefault ); m_brilliance = h.doubleAttribute( "brilliance", crandDefault ); m_crand = h.doubleAttribute( "crand", crandDefault ); m_conserveEnergy = h.boolAttribute( "conserve_energy", false ); m_phong = h.doubleAttribute( "phong", phongDefault ); m_phongSize = h.doubleAttribute( "phongsize", phongSizeDefault ); m_metallic = h.doubleAttribute( "metallic", metallicDefault ); m_specular = h.doubleAttribute( "specular", specularDefault ); m_roughness = h.doubleAttribute( "roughness", roughnessDefault ); m_iridAmount = h.doubleAttribute( "irid_amount", iridAmountDefault ); m_iridThickness = h.doubleAttribute( "irid_thickness", iridThicknessDefault ); m_iridTurbulence = h.doubleAttribute( "irid_turbulence", iridTurbulenceDefault ); m_reflectionColor = h.colorAttribute( "reflection", reflectionColorDefault ); m_reflectionMinColor = h.colorAttribute( "reflection_min", reflectionColorDefault ); m_reflectionFresnel = h.boolAttribute( "reflection_fresnel", false ); m_reflectionFalloff = h.doubleAttribute( "reflection_falloff", reflectionFalloffDefault ); m_reflectionExponent = h.doubleAttribute( "reflection_exponent", reflectionExponentDefault ); m_reflectionMetallic = h.doubleAttribute( "reflection_metallic", reflectionMetallicDefault ); }