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 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 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 PMTranslate::readAttributes( const PMXMLHelper& h ) { m_move = h.vectorAttribute( "value", moveDefault ); }