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 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 ); }