
    \i                         S r SSKJr   " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      rg)a  
Copyright 2011-2018 Kyle Lancaster

Simplekml is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

    )Kmlablec                      ^  \ rS rSrSr   SU 4S jjr\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	\S 5       r
\
R                  S	 5       r
S
rU =r$ )Location   zfSpecifies the exact coordinates of the Model's origin.

The arguments are the same as the properties.
c                 ~   > [         [        U ]  5         XR                  S'   X R                  S'   X0R                  S'   g )N	longitudelatitudealtitude)superr   __init___kml)selfr   r	   r
   	__class__s       R/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/simplekml/model.pyr   Location.__init__   s6     	h&(!*		+ (		* (		*    c                      U R                   S   $ )Decimal degree, accepts float.r   r   r   s    r   r   Location.longitude%   s     yy%%r   c                      XR                   S'   g )Nr   r   )r   r   s     r   r   r   *   s    !*		+r   c                      U R                   S   $ )r   r	   r   r   s    r   r	   Location.latitude.        yy$$r   c                      XR                   S'   g )Nr	   r   )r   r	   s     r   r	   r   3        (		*r   c                      U R                   S   $ )z:Height above the earth's surface in meters, accepts float.r
   r   r   s    r   r
   Location.altitude7   r   r   c                      XR                   S'   g )Nr
   r   )r   r
   s     r   r
   r   <   r   r    )NNr   )__name__
__module____qualname____firstlineno____doc__r   propertyr   setterr	   r
   __static_attributes____classcell__r   s   @r   r   r      s      ) & & + + % % __) ) % % __) )r   r   c                      ^  \ rS rSrSr   SU 4S jjr\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	\S 5       r
\
R                  S	 5       r
S
rU =r$ )OrientationA   zeDescribes rotation of a 3D model's coordinate system.

The arguments are the same as the properties.
c                 ~   > [         [        U ]  5         XR                  S'   X R                  S'   X0R                  S'   g )Nheadingtiltroll)r   r-   r   r   )r   r0   r1   r2   r   s       r   r   Orientation.__init__F   s6     	k4)+&		) 		& 		&r   c                      U R                   S   $ )z)Rotation about the z axis, accepts float.r0   r   r   s    r   r0   Orientation.headingO   s     yy##r   c                      XR                   S'   g )Nr0   r   )r   r0   s     r   r0   r5   T   s    &		)r   c                      U R                   S   $ )z)Rotation about the x axis, accepts float.r1   r   r   s    r   r1   Orientation.tiltX        yy  r   c                      XR                   S'   g )Nr1   r   )r   r1   s     r   r1   r8   ]        		&r   c                      U R                   S   $ )z)Rotation about the y axis, accepts float.r2   r   r   s    r   r2   Orientation.rolla   r9   r   c                      XR                   S'   g )Nr2   r   )r   r2   s     r   r2   r=   f   r;   r   r!   )r   r   r   )r"   r#   r$   r%   r&   r   r'   r0   r(   r1   r2   r)   r*   r+   s   @r   r-   r-   A   s    
 ! $ $ ^^' ' ! ! 
[[! ! ! ! 
[[! !r   r-   c                      ^  \ rS rSrSr   SU 4S jjr\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	\S 5       r
\
R                  S	 5       r
S
rU =r$ )Scalek   zzScales a model along the x, y, and z axes in the model's coordinate space.

The arguments are the same as the properties.
c                 ~   > [         [        U ]  5         XR                  S'   X R                  S'   X0R                  S'   g )Nxyz)r   r@   r   r   )r   rC   rD   rE   r   s       r   r   Scale.__init__q   s3     	eT#%		#		#		#r   c                      U R                   S   $ )z(Scale in the x direction, accepts float.rC   r   r   s    r   rC   Scale.xz        yy~r   c                      XR                   S'   g )NrC   r   )r   rC   s     r   rC   rH          		#r   c                      U R                   S   $ )z(Scale in the y direction, accepts float.rD   r   r   s    r   rD   Scale.y   rI   r   c                      XR                   S'   g )NrD   r   )r   rD   s     r   rD   rM      rK   r   c                      U R                   S   $ )z(Scale in the z direction, accepts float.rE   r   r   s    r   rE   Scale.z   rI   r   c                      XR                   S'   g )NrE   r   )r   rE   s     r   rE   rP      rK   r   r!   )   rR   rR   )r"   r#   r$   r%   r&   r   r'   rC   r(   rD   rE   r)   r*   r+   s   @r   r@   r@   k   s        XX    XX    XX r   r@   c                      ^  \ rS rSrSr  S	U 4S jjr\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	Sr
U =r$ )
Alias   zeContains a mapping from a sourcehref to a targethref.

The arguments are the same as the properties.
c                 b   > [         [        U ]  5         XR                  S'   X R                  S'   g )N
targetHref
sourceHref)r   rT   r   r   )r   
targethref
sourcehrefr   s      r   r   Alias.__init__   s*     	eT#%",		,",		,r   c                      U R                   S   $ )z The target href, accepts string.rW   r   r   s    r   rY   Alias.targethref        yy&&r   c                      XR                   S'   g )NrW   r   )r   rY   s     r   rY   r]          ",		,r   c                      U R                   S   $ )z The source href, accepts string.rX   r   r   s    r   rZ   Alias.sourcehref   r^   r   c                      XR                   S'   g )NrX   r   )r   rZ   s     r   rZ   rb      r`   r   r!   )NN)r"   r#   r$   r%   r&   r   r'   rY   r(   rZ   r)   r*   r+   s   @r   rT   rT      sq     ! - ' ' - - ' ' - -r   rT   c                   r   ^  \ rS rSrSr S	U 4S jjr\S 5       r\R                  S 5       rS r	S r
SrU =r$ )
ResourceMap   zbContains and specifies 0 or more [Alias] elements.

The arguments are the same as the properties.
c                 `   > [         [        U ]  5         Xl        U R                  c  / U l        g g N)r   re   r   _aliases)r   aliasesr   s     r   r   ResourceMap.__init__   s+    k4)+== DM !r   c                     U R                   $ )z4A list of all the aliases, accepts a list of aliasesri   r   s    r   rj   ResourceMap.aliases   s     }}r   c                     Xl         g rh   rm   )r   rj   s     r   rj   rn      s    r   c                 R    [        S0 UD6nU R                  R                  U5        U$ )zCreates a new :class:`simplekml.Alias` and attaches it to the :class:`simplekml.ResourceMap`.

Args:
  * Same as :class:`simplekml.Alias`

r!   )rT   ri   append)r   kwargsaliass      r   newaliasResourceMap.newalias   s&     U#r   c                     / nU R                    H"  nUR                  UR                  5       5        M$     SR                  U5      $ )N )ri   rq   __str__join)r   bufrs   s      r   rx   ResourceMap.__str__   s5    ]]EJJu}}' #wws|r   rm   rh   )r"   r#   r$   r%   r&   r   r'   rj   r(   rt   rx   r)   r*   r+   s   @r   re   re      sM        ^^   	 r   re   N)r&   simplekml.baser   r   r-   r@   rT   re   r!   r   r   <module>r}      sO   $ #()w ()V'!' '!T(G (V-G -@%' %r   