File: sun.rst

package info (click to toggle)
ezdxf 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104,528 kB
  • sloc: python: 182,341; makefile: 116; lisp: 20; ansic: 4
file content (63 lines) | stat: -rw-r--r-- 1,490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Sun
===

.. module:: ezdxf.entities
    :noindex:

The `SUN`_ entity defines properties of the sun.

======================== ===========================================================
Subclass of              :class:`ezdxf.entities.DXFObject`
DXF type                 ``'SUN'``
Factory function         creating a new SUN entity is not supported
======================== ===========================================================


.. _SUN: http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-BB191D89-9302-45E4-9904-108AB418FAE1


.. class:: Sun

    .. attribute:: dxf.version

        Current version is 1.

    .. attribute:: dxf.status

        on = 1 or off = 0

    .. attribute:: dxf.color

        :ref:`ACI` value of the sun.

    .. attribute:: dxf.true_color

        :term:`true-color` value of the sun.

    .. attribute:: dxf.intensity

        Intensity value in the range of [0, 1]. (float)

    .. attribute:: dxf.julian_day

        use :func:`~ezdxf.tools.calendardate` to convert :attr:`dxf.julian_day` to
        :class:`datetime.datetime` object.

    .. attribute:: dxf.time

        Day time in seconds past midnight. (int)

    .. attribute:: dxf.daylight_savings_time

    .. attribute:: dxf.shadows

        === =======================
        0   Sun do not cast shadows
        1   Sun do cast shadows
        === =======================

    .. attribute:: dxf.shadow_type

    .. attribute:: dxf.shadow_map_size

    .. attribute:: dxf.shadow_softness