Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::Imports::LWClip Class Reference

Parser for LightWave object file envelope subchunks. More...

#include <LWClip.h>

Collaboration diagram for Teddy::Imports::LWClip:

Collaboration graph
[legend]
List of all members.

Public Methods

 LWClip (LWFile *f)
 LWClip constructor. More...

void processClip ()

Public Attributes

FNAM0 still_image
 STIL. More...

U1 image_sequence_num_digits
 ISEQ. More...

U1 image_sequence_flags
 ISEQ. More...

I2 image_sequence_offset
 ISEQ. More...

I2 image_sequence_loop_length
 ISEQ. More...

FNAM0 image_sequence_prefix
 ISEQ. More...

S0 image_sequence_suffix
 ISEQ. More...

FNAM0 plugin_animation_filename
 ANIM. More...

S0 plugin_animation_server_name
 ANIM. More...

U2 plugin_animation_flags
 ANIM. More...

I2 color_cycling_still_image_lo
 STCC. More...

I2 color_cycling_still_image_hi
 STCC. More...

FNAM0 color_cycling_still_image_name
 STCC. More...

FP4 contrast_modifier
 CONT. More...

VX contrast_modifier_envelope
 CONT. More...

FP4 brightness_modifier
 BRIT. More...

VX brightness_modifier_envelope
 BRIT. More...

FP4 saturation_modifier
 SATR. More...

VX saturation_modifier_envelope
 SATR. More...

FP4 hue_modifier
 HUE. More...

VX hue_modifier_envelope
 HUE. More...

F4 gamma_modifier
 GAMM. More...

VX gamma_modifier_envelope
 GAMM. More...

U2 negative_modifier
 NEGA. More...

S0 plugin_image_filter_server_name
 IFLT. More...

U2 plugin_image_filter_flags
 IFLT. More...

S0 plugin_pixel_filter_server_name
 PFLT. More...

U2 plugin_pixel_filter_flags
 PFLT. More...


Protected Methods

void readStillImage_FNAM0 ()
void readImageSequence_U1_U1_I2_I2_FNAM0_S0 ()
void readAnimation_FNAM0_S0_U2_d ()
void readStillColorCycle_I2_I2_FNAM0 ()
void readContrast_FP4_VX ()
void readBrightness_FP4_VX ()
void readSaturation_FP4_VX ()
void readHue_FP4_VX ()
void readGamma_F4_VX ()
void readNegative_U2 ()
void readImageFilter_S0_U2_d ()
void readPixelFilter_S0_U2_d ()

Protected Attributes

ID4 clip_type
U4 clip_length
LWFilef

Detailed Description

Parser for LightWave object file envelope subchunks.

Only for Lighwave files from version 6.0 and up

Definition at line 46 of file LWClip.h.


Constructor & Destructor Documentation

Teddy::Imports::LWClip::LWClip LWFile   f
 

LWClip constructor.

Definition at line 38 of file LWClip.cpp.

References brightness_modifier, brightness_modifier_envelope, color_cycling_still_image_hi, color_cycling_still_image_lo, contrast_modifier, contrast_modifier_envelope, f, gamma_modifier, gamma_modifier_envelope, hue_modifier, hue_modifier_envelope, image_sequence_flags, image_sequence_loop_length, image_sequence_num_digits, image_sequence_offset, negative_modifier, plugin_animation_flags, plugin_image_filter_flags, plugin_pixel_filter_flags, saturation_modifier, and saturation_modifier_envelope.


Member Function Documentation

void Teddy::Imports::LWClip::processClip  
 

Definition at line 63 of file LWClip.cpp.

References clip_length, clip_type, Teddy::Imports::did, Teddy::SysSupport::dmsg, f, ID_ANIM, ID_BRIT, ID_CONT, ID_GAMM, ID_HUE, ID_IFLT, ID_ISEQ, ID_NEGA, ID_PFLT, ID_SATR, ID_STCC, ID_STIL, Teddy::SysSupport::M_LWO, readAnimation_FNAM0_S0_U2_d, readBrightness_FP4_VX, readContrast_FP4_VX, readGamma_F4_VX, readHue_FP4_VX, readImageFilter_S0_U2_d, readImageSequence_U1_U1_I2_I2_FNAM0_S0, readNegative_U2, readPixelFilter_S0_U2_d, readSaturation_FP4_VX, readStillColorCycle_I2_I2_FNAM0, and readStillImage_FNAM0.

void Teddy::Imports::LWClip::readAnimation_FNAM0_S0_U2_d   [protected]
 

LWO2::CLIP Plug-in Animation

ANIM { filename[FNAM0], server-name[S0], flags[U2], data[...] }

This chunk indicates that the source imagery comes from a plug-in animation loader. The loader is defined by the server name and its data which just follows as binary bytes.

Definition at line 135 of file LWClip.cpp.

References f, plugin_animation_filename, plugin_animation_flags, plugin_animation_server_name, and Teddy::Imports::U1.

Referenced by processClip.

void Teddy::Imports::LWClip::readBrightness_FP4_VX   [protected]
 

LWO2::CLIP Brightness

BRIT { brightness-delta[FP4], envelope[VX] }

This modifier alters the brightness of the image up or down by the given percentage.

Definition at line 182 of file LWClip.cpp.

References brightness_modifier, brightness_modifier_envelope, and f.

Referenced by processClip.

void Teddy::Imports::LWClip::readContrast_FP4_VX   [protected]
 

LWO2::CLIP Contrast

CONT { contrast-delta[FP4], envelope[VX] }

This modifier alters the contrast of the image up or down by the given percentage.

Definition at line 169 of file LWClip.cpp.

References contrast_modifier, contrast_modifier_envelope, and f.

Referenced by processClip.

void Teddy::Imports::LWClip::readGamma_F4_VX   [protected]
 

LWO2::CLIP Gamma Correction

GAMM { gamma[F4], envelope[VX] }

This modifier applies the given gamma to the image, where a value of 1.0 is no change.

Definition at line 221 of file LWClip.cpp.

References f, gamma_modifier, and gamma_modifier_envelope.

Referenced by processClip.

void Teddy::Imports::LWClip::readHue_FP4_VX   [protected]
 

LWO2::CLIP Hue

HUE { hue-rotation[FP4], envelope[VX] }

This modifier rotates the hue of the image 360 degrees for 100% of hue rotation.

Definition at line 208 of file LWClip.cpp.

References f, Teddy::Imports::FP4, hue_modifier, hue_modifier_envelope, and Teddy::Imports::VX.

Referenced by processClip.

void Teddy::Imports::LWClip::readImageFilter_S0_U2_d   [protected]
 

LWO2::CLIP Plug-in Image Filters

IFLT { server-name[S0], flags[U2], data[...] }

Plug-in image filters can be used to pre-filter an image before rendering. The filter has to be able to exist outside of the special environment of rendering in order to work here. Filters are given by a server name, an enable flag, and plug-in server data as raw bytes.

Definition at line 248 of file LWClip.cpp.

References f, plugin_image_filter_flags, plugin_image_filter_server_name, and Teddy::Imports::U1.

Referenced by processClip.

void Teddy::Imports::LWClip::readImageSequence_U1_U1_I2_I2_FNAM0_S0   [protected]
 

LWO2::CLIP Image Sequence

ISEQ { num-digits[U1], flags[U1], offset[I2], loop-length[I2], prefix[FNAM0], suffix[S0] }

This source chuck describes an image sequence, which is basically a filename with a number in the middle. The number of digits is the number of zeros used to encode the sequence number in the filename. The flags has bits for looping and interlace. Offset and loop-length define the frames in the sequence. The prefix and suffix are stuck before and after the frame number to make the filename for each frame, which is in neutral path format.

Definition at line 117 of file LWClip.cpp.

References f, image_sequence_flags, image_sequence_loop_length, image_sequence_num_digits, image_sequence_offset, image_sequence_prefix, and image_sequence_suffix.

Referenced by processClip.

void Teddy::Imports::LWClip::readNegative_U2   [protected]
 

LWO2::CLIP Negative

NEGA { enable[U2] }

If the value is true, this modifier performs a negation of the image.

Definition at line 233 of file LWClip.cpp.

References f, negative_modifier, and Teddy::Imports::U2.

Referenced by processClip.

void Teddy::Imports::LWClip::readPixelFilter_S0_U2_d   [protected]
 

LWO2::CLIP Plug-in Pixel Filters

PFLT { server-name[S0], flags[U2], data[...] }

Pixel filters may also be used as clip modifiers, and they are stored and used in a way that is exactly like image filters above.

Definition at line 268 of file LWClip.cpp.

References f, plugin_pixel_filter_flags, plugin_pixel_filter_server_name, Teddy::Imports::S0, Teddy::Imports::U1, and Teddy::Imports::U2.

Referenced by processClip.

void Teddy::Imports::LWClip::readSaturation_FP4_VX   [protected]
 

LWO2::CLIP Saturation

SATR { saturation-delta[FP4], envelope[VX] }

This modifier alters the saturation of the image up or down by the given percentage.

Definition at line 195 of file LWClip.cpp.

References f, saturation_modifier, and saturation_modifier_envelope.

Referenced by processClip.

void Teddy::Imports::LWClip::readStillColorCycle_I2_I2_FNAM0   [protected]
 

LWO2::CLIP Color-cycling Still

STCC { lo[I2], hi[I2], name[FNAM0] }

A still image with color-cycling is a source defined by a neutral-format name and cycling parameters. If lo is less than hi, the colors cycle forward, and if hi is less than lo, they go backwards.

Definition at line 155 of file LWClip.cpp.

References color_cycling_still_image_hi, color_cycling_still_image_lo, color_cycling_still_image_name, and f.

Referenced by processClip.

void Teddy::Imports::LWClip::readStillImage_FNAM0   [protected]
 

Still Image

STIL { name[FNAM0] }

This source chunk describes a single still image. The image is referenced by a filename in neutral path format.

Definition at line 100 of file LWClip.cpp.

References f, and still_image.

Referenced by processClip.


Member Data Documentation

FP4 Teddy::Imports::LWClip::brightness_modifier
 

BRIT.

Definition at line 87 of file LWClip.h.

Referenced by LWClip, and readBrightness_FP4_VX.

VX Teddy::Imports::LWClip::brightness_modifier_envelope
 

BRIT.

Definition at line 88 of file LWClip.h.

Referenced by LWClip, and readBrightness_FP4_VX.

U4 Teddy::Imports::LWClip::clip_length [protected]
 

Definition at line 67 of file LWClip.h.

Referenced by processClip.

ID4 Teddy::Imports::LWClip::clip_type [protected]
 

Definition at line 66 of file LWClip.h.

Referenced by processClip.

I2 Teddy::Imports::LWClip::color_cycling_still_image_hi
 

STCC.

Definition at line 83 of file LWClip.h.

Referenced by LWClip, and readStillColorCycle_I2_I2_FNAM0.

I2 Teddy::Imports::LWClip::color_cycling_still_image_lo
 

STCC.

Definition at line 82 of file LWClip.h.

Referenced by LWClip, and readStillColorCycle_I2_I2_FNAM0.

FNAM0 Teddy::Imports::LWClip::color_cycling_still_image_name
 

STCC.

Definition at line 84 of file LWClip.h.

Referenced by readStillColorCycle_I2_I2_FNAM0.

FP4 Teddy::Imports::LWClip::contrast_modifier
 

CONT.

Definition at line 85 of file LWClip.h.

Referenced by LWClip, and readContrast_FP4_VX.

VX Teddy::Imports::LWClip::contrast_modifier_envelope
 

CONT.

Definition at line 86 of file LWClip.h.

Referenced by LWClip, and readContrast_FP4_VX.

LWFile* Teddy::Imports::LWClip::f [protected]
 

Definition at line 68 of file LWClip.h.

Referenced by LWClip, processClip, readAnimation_FNAM0_S0_U2_d, readBrightness_FP4_VX, readContrast_FP4_VX, readGamma_F4_VX, readHue_FP4_VX, readImageFilter_S0_U2_d, readImageSequence_U1_U1_I2_I2_FNAM0_S0, readNegative_U2, readPixelFilter_S0_U2_d, readSaturation_FP4_VX, readStillColorCycle_I2_I2_FNAM0, and readStillImage_FNAM0.

F4 Teddy::Imports::LWClip::gamma_modifier
 

GAMM.

Definition at line 93 of file LWClip.h.

Referenced by LWClip, and readGamma_F4_VX.

VX Teddy::Imports::LWClip::gamma_modifier_envelope
 

GAMM.

Definition at line 94 of file LWClip.h.

Referenced by LWClip, and readGamma_F4_VX.

FP4 Teddy::Imports::LWClip::hue_modifier
 

HUE.

Definition at line 91 of file LWClip.h.

Referenced by LWClip, and readHue_FP4_VX.

VX Teddy::Imports::LWClip::hue_modifier_envelope
 

HUE.

Definition at line 92 of file LWClip.h.

Referenced by LWClip, and readHue_FP4_VX.

U1 Teddy::Imports::LWClip::image_sequence_flags
 

ISEQ.

Definition at line 74 of file LWClip.h.

Referenced by LWClip, and readImageSequence_U1_U1_I2_I2_FNAM0_S0.

I2 Teddy::Imports::LWClip::image_sequence_loop_length
 

ISEQ.

Definition at line 76 of file LWClip.h.

Referenced by LWClip, and readImageSequence_U1_U1_I2_I2_FNAM0_S0.

U1 Teddy::Imports::LWClip::image_sequence_num_digits
 

ISEQ.

Definition at line 73 of file LWClip.h.

Referenced by LWClip, and readImageSequence_U1_U1_I2_I2_FNAM0_S0.

I2 Teddy::Imports::LWClip::image_sequence_offset
 

ISEQ.

Definition at line 75 of file LWClip.h.

Referenced by LWClip, and readImageSequence_U1_U1_I2_I2_FNAM0_S0.

FNAM0 Teddy::Imports::LWClip::image_sequence_prefix
 

ISEQ.

Definition at line 77 of file LWClip.h.

Referenced by readImageSequence_U1_U1_I2_I2_FNAM0_S0.

S0 Teddy::Imports::LWClip::image_sequence_suffix
 

ISEQ.

Definition at line 78 of file LWClip.h.

Referenced by readImageSequence_U1_U1_I2_I2_FNAM0_S0.

U2 Teddy::Imports::LWClip::negative_modifier
 

NEGA.

Definition at line 95 of file LWClip.h.

Referenced by LWClip, and readNegative_U2.

FNAM0 Teddy::Imports::LWClip::plugin_animation_filename
 

ANIM.

Definition at line 79 of file LWClip.h.

Referenced by readAnimation_FNAM0_S0_U2_d.

U2 Teddy::Imports::LWClip::plugin_animation_flags
 

ANIM.

Definition at line 81 of file LWClip.h.

Referenced by LWClip, and readAnimation_FNAM0_S0_U2_d.

S0 Teddy::Imports::LWClip::plugin_animation_server_name
 

ANIM.

Definition at line 80 of file LWClip.h.

Referenced by readAnimation_FNAM0_S0_U2_d.

U2 Teddy::Imports::LWClip::plugin_image_filter_flags
 

IFLT.

Definition at line 97 of file LWClip.h.

Referenced by LWClip, and readImageFilter_S0_U2_d.

S0 Teddy::Imports::LWClip::plugin_image_filter_server_name
 

IFLT.

Definition at line 96 of file LWClip.h.

Referenced by readImageFilter_S0_U2_d.

U2 Teddy::Imports::LWClip::plugin_pixel_filter_flags
 

PFLT.

Definition at line 99 of file LWClip.h.

Referenced by LWClip, and readPixelFilter_S0_U2_d.

S0 Teddy::Imports::LWClip::plugin_pixel_filter_server_name
 

PFLT.

Definition at line 98 of file LWClip.h.

Referenced by readPixelFilter_S0_U2_d.

FP4 Teddy::Imports::LWClip::saturation_modifier
 

SATR.

Definition at line 89 of file LWClip.h.

Referenced by LWClip, and readSaturation_FP4_VX.

VX Teddy::Imports::LWClip::saturation_modifier_envelope
 

SATR.

Definition at line 90 of file LWClip.h.

Referenced by LWClip, and readSaturation_FP4_VX.

FNAM0 Teddy::Imports::LWClip::still_image
 

STIL.

Definition at line 72 of file LWClip.h.

Referenced by readStillImage_FNAM0.


The documentation for this class was generated from the following files: