コード例 #1
0
 def __str__(self):
     return obj2str(
         "AnimationTrack",
         [
             ("Keyframe Sequence", self.keyframe_sequence),
             ("Animation Controller", self.animation_controller),
             ("Property ID", const2str(self.property_id)),
         ],
     )
コード例 #2
0
ファイル: morphing_mesh.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str(
         "MorphingMesh",
         [
             ("Morph Target Count", self.morph_target_count),
             ("Morph Target", f"Array of {len(self.morph_target)} items"),
             ("Initial Weight",
              f"Array of {len(self.initial_weight)} items"),
         ],
     )
コード例 #3
0
 def __str__(self):
     return obj2str(
         "Mesh",
         [
             ("Vertex Buffer", self.vertex_buffer),
             ("Submesh Count", self.submesh_count),
             ("Index Buffer", self.index_buffer),
             ("Appearance", self.appearance),
         ],
     )
コード例 #4
0
ファイル: triangle_strip_array.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str(
         "TriangleStripArray",
         [
             ("Encoding", self.encoding),
             ("Start Index", self.start_index),
             ("Indices", f"Array of {len(self.indices)} items"),
             ("Strip Lengths", f"Array of {len(self.strip_lengths)} items"),
         ],
     )
コード例 #5
0
 def __str__(self):
     return obj2str(
         "VertexArray",
         [
             ("Component Size", self.component_size),
             ("Component Count", self.component_count),
             ("Encoding", self.encoding),
             ("Vertex Count", self.vertex_count),
             ("Vertices", f"Array of {len(self.vertices)} items"),
         ],
     )
コード例 #6
0
ファイル: header.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str(
         "Header",
         [
             ("Version", f"{self.version[0]}.{self.version[1]}"),
             ("Has external references", self.has_external_references),
             ("Total file size", self.total_file_size),
             ("Approximate content size", self.approximate_content_size),
             ("Authoring field text", f"'{self.authoring_field}'"),
         ],
     )
コード例 #7
0
 def __str__(self):
     return obj2str(
         "Fog",
         [
             ("Color", self.color),
             ("Mode", const2str(self.mode)),
             ("Density", self.density),
             ("Near", self.near),
             ("Far", self.far),
         ],
     )
コード例 #8
0
ファイル: appearance.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str(
         "Appearance",
         [
             ("Layer", self.layer),
             ("Compositing Mode", self.compositing_mode),
             ("Fog", self.fog),
             ("Polygon Mode", self.polygon_mode),
             ("Material", self.material),
             ("Textures", self.textures),
         ],
     )
コード例 #9
0
ファイル: animation_controller.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str(
         "AnimationController",
         [
             ("Speed", self.speed),
             ("Weight", self.weight),
             ("Active Interval Start", self.active_interval_start),
             ("Active Interval End", self.active_interval_end),
             ("Reference Sequence Time", self.reference_sequence_time),
             ("Reference World Time", self.reference_world_time),
         ],
     )
コード例 #10
0
 def __str__(self):
     return obj2str(
         "Camera",
         [
             ("Projection Type", const2str(self.projection_type)),
             ("Projection Matrix", self.projection_matrix),
             ("Fov Y", self.fovy),
             ("Aspect Ratio", self.aspect_ratio),
             ("Near", self.near),
             ("Far", self.far),
         ],
     )
コード例 #11
0
ファイル: image2d.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str(
         "Image2D",
         [
             ("Format", const2str(self.image_format)),
             ("Is Mutable", self.is_mutable),
             ("Size", f"{self.width} x {self.height}"),
             ("Height", self.height),
             ("Palette", f"Array of {len(self.palette)} items"),
             ("Pixels", f"Array of {len(self.pixels)} items"),
         ],
     )
コード例 #12
0
ファイル: skinned_mesh.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str(
         "SkinnedMesh",
         [
             ("Skeleton", self.skeleton),
             ("Transform Reference Count", self.transform_reference_count),
             ("Transform Node",
              f"Array of {len(self.transform_node)} items"),
             ("First Vertex", f"Array of {len(self.first_vertex)} items"),
             ("Vertex Count", f"Array of {len(self.vertex_count)} items"),
             ("Weight", f"Array of {len(self.weight)} items"),
         ],
     )
コード例 #13
0
ファイル: texture2d.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str(
         "Texture2D",
         [
             ("Image", self.image),
             ("Blend Color", self.blend_color),
             ("Blending", const2str(self.blending)),
             ("Wrapping S", const2str(self.wrapping_s)),
             ("Wrapping T", const2str(self.wrapping_t)),
             ("Level Filter", const2str(self.level_filter)),
             ("Image Filter", const2str(self.image_filter)),
         ],
     )
コード例 #14
0
 def __str__(self):
     return obj2str(
         "Material",
         [
             ("Ambient Color", self.ambient_color),
             ("Diffuse Color", self.diffuse_color),
             ("Emissive Color", self.emissive_color),
             ("Specular Color", self.specular_color),
             ("Shininess", self.shininess),
             ("Vertex Color Tracking Enabled",
              self.vertex_color_tracking_enabled),
         ],
     )
コード例 #15
0
 def __str__(self):
     return obj2str(
         "Sprite",
         [
             ("Image", self.image),
             ("Appearance", self.appearance),
             ("Is Scaled", self.is_scaled),
             ("Crop X", self.crop_x),
             ("Crop Y", self.crop_y),
             ("Crop Width", self.crop_width),
             ("Crop Height", self.crop_height),
         ],
     )
コード例 #16
0
 def __str__(self):
     return obj2str(
         "Light",
         [
             ("Attenuation Constant", self.attenuation_constant),
             ("Attenuation Linear", self.attenuation_linear),
             ("Attenuation Quadratic", self.attenuation_quadratic),
             ("Color", self.color),
             ("Mode", const2str(self.mode)),
             ("Intensity", self.intensity),
             ("Spot Angle", self.spot_angle),
             ("Spot Exponent", self.spot_exponent),
         ],
     )
コード例 #17
0
ファイル: compositing_mode.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str(
         "CompositingMode",
         [
             ("Depth Test Enabled", self.depth_test_enabled),
             ("Depth Write Enabled", self.depth_write_enabled),
             ("Color Write Enabled", self.color_write_enabled),
             ("Alpha Write Enabled", self.alpha_write_enabled),
             ("Blending", const2str(self.blending)),
             ("Alpha Threshold", self.alpha_threshold),
             ("Depth Offset Factor", self.depth_offset_factor),
             ("Depth Offset Units", self.depth_offset_units),
         ],
     )
コード例 #18
0
 def __str__(self):
     return obj2str(
         "Material",
         [
             ("Culling", const2str(self.culling)),
             ("Shading", const2str(self.shading)),
             ("Winding", const2str(self.winding)),
             ("Two Sided Lighting Enabled",
              self.two_sided_lighting_enabled),
             ("Local Camera Lighting Enabled",
              self.local_camera_lighting_enabled),
             ("Perspective Correction Enabled",
              self.perspective_correction_enabled),
         ],
     )
コード例 #19
0
 def __str__(self):
     return obj2str(
         "Background",
         [
             ("Color", self.background_color),
             ("Image", self.background_image),
             ("Image Mode X", const2str(self.background_image_mode_x)),
             ("Image Mode Y", const2str(self.background_image_mode_y)),
             ("Crop X", self.crop_x),
             ("Crop Y", self.crop_y),
             ("Crop Width", self.crop_width),
             ("Crop Height", self.crop_height),
             ("Depth Clear Enabled", self.depth_clear_enabled),
             ("Color Clear Enabled", self.color_clear_enabled),
         ],
     )
コード例 #20
0
 def __str__(self):
     return obj2str(
         "VertexBuffer",
         [
             ("Default Color", self.default_color),
             ("Positions", self.positions),
             ("Position Bias", self.position_bias),
             ("Position Scale", self.position_scale),
             ("Normals", self.normals),
             ("Colors", self.colors),
             ("Texcoord Array Count", self.texcoord_array_count),
             ("Texcoords", f"Array of {len(self.tex_coords)} items"),
             ("Texcoord Bias",
              f"Array of {len(self.tex_coord_bias)} items"),
             ("Texcoord Scale",
              f"Array of {len(self.tex_coord_scale)} items"),
         ],
     )
コード例 #21
0
 def __str__(self):
     return obj2str(
         "KeyframeSequence",
         [
             ("Interpolation", const2str(self.interpolation)),
             ("Repeat Mode", const2str(self.repeat_mode)),
             ("Encoding", self.encoding),
             ("Duration", self.duration),
             ("Valid Range First", self.valid_range_first),
             ("Valid Range Last", self.valid_range_last),
             ("Component Count", self.component_count),
             ("Keyframe Count", self.keyframe_count),
             ("Time", f"Array of {len(self.time)} items"),
             ("Vector Value", f"Array of {len(self.vector_value)} items"),
             ("Vector Bias", f"Array of {len(self.vector_bias)} items"),
             ("Vector Scale", f"Array of {len(self.vector_scale)} items"),
         ],
     )
コード例 #22
0
ファイル: external_reference.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str("External Reference", [("URI", self.uri)])
コード例 #23
0
 def __str__(self):
     return obj2str(
         "World",
         [("Active Camera", self.active_camera),
          ("Background", self.background)],
     )
コード例 #24
0
ファイル: group.py プロジェクト: Zi9/PyM3G
 def __str__(self):
     return obj2str("Group", [("Children", self.children)])