Exemplo n.º 1
0
class EnergyType(enum.EnumClass(
    ("Total", "All contributions to the energy"),
    ("Elastic", "Elastic energy-- one half stress times elastic strain"),
    ("Electric", "Electric energy-- one half total polarization times electric field")
    )):
    tip="Varieties of Energy."
    discussion="""<para>
Exemplo n.º 2
0
 class AxesPermutation(
         enum.EnumClass(('xzy', "Swap the y and z axes"),
                        ('yxz', "Swap the x and y axes"),
                        ('zyx', "Swap the x and z axes"),
                        ('yzx', "Cycle the axes"),
                        ('zxy', "Cycle the axes the other way"))):
     tip = "How to permute the image axes."
Exemplo n.º 3
0
 class FlipDirection(
         enum.EnumClass(('x', 'Flip the image about the x axis'), (
             'y', 'Flip the image about the y axis'
         ), ('xy',
             'Flip the image about both the x and y axes (ie, rotate by 180 degrees)'
             ))):
     tip = "Axis about which to flip an Image."
     discussion = """<para>
Exemplo n.º 4
0
 class DataFileFormat(
         enum.EnumClass((
             'ascii',
             'An ASCII file with Python-like syntax that will NOT be parsed by the Python interpreter.  Inflexible, editable, but secure.'
         ), ('binary',
             'A binary file. Inflexible and uneditable, but secure, compact and not subject to round-off error.'
             ))):
     tip = "Types of &oof2; data files."
     discussion = "<para>See <xref linkend='Section:Concepts:FileFormats'/>.</para>"
Exemplo n.º 5
0
class ElementSelectionExpansionMode(
        enum.EnumClass(
            ("Faces",
             "Select Elements that share a Face with a selected Element."),
            ("Segments",
             "Select Elements that share a Segment with a selected Element."),
            ("Nodes",
             "Select Elements that share a Node with a selected Element."))):
    tip = "How to choose the neighboring Elements."
Exemplo n.º 6
0
class SamplingType(
        enum.EnumClass(
            'GRID',  # Promises existence of get_bounds() and contains().
            'PIXEL',  # Promises existence of get_pixels().
            'ELEMENT',  # Promises existence of get_elements().
            'POINT',  # Promises existence of get_points().
            'LINE',  # Promises existence of get_endpoints().
            'BENTLINE'  # Promises existence of get_elemental_segments().
        )):
    pass
Exemplo n.º 7
0
class MatPropCompatibilityType(
        enum.EnumClass(
            ('bulk_only',
             'The property can only be assigned to bulk materials.'),
            ('interface_only',
             'The property can only be assigned to interface materials.'),
            ('bulk_interface',
             'The property can be assigned to either bulk or interface materials.'
             ))):
    tip = "Compatibility of &oof2; properties to &oof2; materials."
    discussion = """<para>
Exemplo n.º 8
0
 class FlipDirection(enum.EnumClass(
     # TODO 3D: are these all the flip possibilities?
     ('x', 'Flip the image in the x direction.'),
     ('y', 'Flip the image in the y direction.'),
     ('z', 'Flip the image in the z direction.'),
     ('xy', 'Flip the image in both the x and y directions.'),
     ('yz', 'Flip the image in both the y and z directions.'),
     ('xz', 'Flip the image in both the x and z directions.'),
     ('xyz', 'Flip the image in each of the x, y, and z directions.'))):
     tip = "Axis about which to flip an Image."
     discussion = """<para>
Exemplo n.º 9
0
class Units(enum.EnumClass(
    (Pixel, 'Lengths are relative to the '+pixel+' size'),
    ('Physical', 'Lengths are given in physical units'),
    ('Fractional', 'Lengths are fractions of the dimensions of the microstructure')
    )):
    tip="Specify units for inputs"
    discussion="""<para>

    This type is used to specify whether a length is being given in
    <link linkend="Section-Concepts-Microstructure-Coordinates">physical</link>
    units, or as a multiple of the """+pixel+""" size in the relevant &micro;,
Exemplo n.º 10
0
 class FlipDirection(
         enum.EnumClass(
             ('x', 'Flip the image about the x axis'),
             ('y', 'Flip the image about the y axis'),
             ('z', 'Flip the image about the z axis'),
             ('xy', 'Flip the image about both the x and y axes'),
             ('yz', 'Flip the image about both the y and z axes'),
             ('xz', 'Flip the image about both the x and z axes'),
             ('xyz', 'Flip the image about both the x, y, and z axes'))):
     tip = "Axis about which to flip an Image."
     discussion = """<para>
Exemplo n.º 11
0
class Coverage(
        enum.EnumClass(
            ("Exterior", "Select objects on the exterior of the set"),
            ("Interior", "Select objects on the interior of the set"),
            ("All", "Select all objects in the set."))):
    pass
Exemplo n.º 12
0
class AngleUnits(enum.EnumClass('Radians', 'Degrees')):
    pass
Exemplo n.º 13
0
class SegmentSide(enum.EnumClass('LEFT', 'RIGHT')):
    tip="The side of an element edge on which output data should be computed."
    discussion=xmlmenudump.loadFile('DISCUSSIONS/engine/enum/segmentside.xml')
Exemplo n.º 14
0
 class InPlaneSpaceComponent(enum.EnumClass('x', 'y')):
     tip = "The in-plane components of vectors."
     discussion = """<para>
Exemplo n.º 15
0
 class AxesPermutation(
         enum.EnumClass(('xy', "Don't permute the axes"),
                        ('yx', "Swap the x and y axes."))):
     tip = "How to permute the image axes."
Exemplo n.º 16
0
 class PlaneOrientation(
         enum.EnumClass(
             ("FRONT", "The side in the direction of the positive normal."),
             ("BACK", "The side in the direction of the negative normal."))
 ):
     pass
Exemplo n.º 17
0
class Separator(enum.EnumClass("space", "comma", "tab")):
    tip = "Characters used between columns in output files."
    discussion = """<para>
Exemplo n.º 18
0
class WriteMode(enum.EnumClass("w", "a")):
    pass
Exemplo n.º 19
0
class Director(
        enum.EnumClass('Clockwise', 'Counterclockwise', 'Left to right',
                       'Right to left', 'Top to bottom', 'Bottom to top',
                       'Non-sequenceable')):  #Interface branch
    tip = "Directions for arranging objects."
    discussion = """<para>
Exemplo n.º 20
0
class ImageFormatE(enum.EnumClass("bmp", "jpg", "png", "pnm", "ps", "tiff")):
    pass
Exemplo n.º 21
0
class ElementShapeType(
        enum.EnumClass(('brick', 'topological equivalents of cubes'),
                       ('tetra', 'tetrahedral elements'))):
    tip = "Shapes of Skeleton Elements."
    discussion = """<para>
Exemplo n.º 22
0
 class ThemeEnum(enum.EnumClass(*themes)):
     pass
Exemplo n.º 23
0
class Director(enum.EnumClass(*(unclosedDirections + closedLoopDirections))):
    tip = "Directions for arranging objects."
    discussion = """<para>
Exemplo n.º 24
0
class OutputType(enum.EnumClass('Scalar', 'Aggregate')):
    tip = "Different varieties of Output classes."
    discussion = xmlmenudump.loadFile('DISCUSSIONS/engine/enum/outputtype.xml')
Exemplo n.º 25
0
class SurfaceDirector(
        enum.EnumClass(*(unclosedDirections + closedSurfaceDirections))):
    tip = "Directions for arranging surfaces."
Exemplo n.º 26
0
class ElementShapeType(enum.EnumClass(('triangle', 'triangular elements'),
                                      ('quad', 'quadrilateral elements'))):
    tip = "Shapes of Skeleton Elements."
    discussion = """<para>
Exemplo n.º 27
0
class MenuDumpFormat(enum.EnumClass("text", "xml")):
    tip = "File formats for the &oof2; API dump."
    discussion = """<para>
Exemplo n.º 28
0
class SpaceComponent(enum.EnumClass('x', 'y', 'z')):
    tip = 'Components of vectors.'
    discussion = """<para>
Exemplo n.º 29
0
class WriteMode(enum.EnumClass("w", "a")):
    tip = "Write or append?"
    discussion = xmlmenudump.loadFile("DISCUSSIONS/common/enum/writemode.xml")
Exemplo n.º 30
0
class ReferenceFrame(
        enum.EnumClass(("Lab", "The laboratory reference frame"),
                       ("Crystal", "The crystal reference frame"))):
    tip = "Evaluate quantities in the lab or crystal reference frame."