Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

ResourcePixmap Class Reference

#include <resourcepixmap.h>

List of all members.

Public Member Functions

 ResourcePixmap (MWindow *mwindow, TrackCanvas *canvas, Edit *edit, int w, int h)
 ~ResourcePixmap ()
void resize (int w, int h)
void draw_data (Edit *edit, int64_t edit_x, int64_t edit_w, int64_t pixmap_x, int64_t pixmap_w, int64_t pixmap_h, int force, int indexes_only)
void draw_audio_resource (Edit *edit, int x, int w)
void draw_video_resource (Edit *edit, int64_t edit_x, int64_t edit_w, int64_t pixmap_x, int64_t pixmap_w, int refresh_x, int refresh_w)
void draw_audio_source (Edit *edit, int x, int w)
void draw_title (Edit *edit, int64_t edit_x, int64_t edit_w, int64_t pixmap_x, int64_t pixmap_w)
void reset ()
void test_timer ()
void dump ()

Public Attributes

MWindowmwindow
TrackCanvascanvas
int visible
int64_t edit_id
int64_t edit_x
int64_t pixmap_x
int64_t pixmap_w
int64_t pixmap_h
int64_t zoom_sample
int64_t zoom_track
int64_t zoom_y
int64_t startsource
double source_framerate
double project_framerate
int64_t source_samplerate
int64_t project_samplerate
int data_type
Timer * timer


Detailed Description

Definition at line 10 of file resourcepixmap.h.


Constructor & Destructor Documentation

ResourcePixmap::ResourcePixmap MWindow mwindow,
TrackCanvas canvas,
Edit edit,
int  w,
int  h
 

Definition at line 27 of file resourcepixmap.C.

References Edit::asset, Track::data_type, data_type, edit_id, Edit::edl, EDLSession::frame_rate, Asset::frame_rate, Edit::id, project_framerate, project_samplerate, reset(), EDLSession::sample_rate, Asset::sample_rate, EDL::session, source_framerate, source_samplerate, Edit::startsource, startsource, and Edit::track.

ResourcePixmap::~ResourcePixmap  ) 
 

Definition at line 47 of file resourcepixmap.C.


Member Function Documentation

void ResourcePixmap::draw_audio_resource Edit edit,
int  x,
int  w
 

Definition at line 427 of file resourcepixmap.C.

References Edit::asset, IndexFile::close_index(), draw_audio_source(), IndexFile::draw_index(), MWindow::edl, Asset::index_status, Asset::index_zoom, EDL::local_session, mwindow, IndexFile::open_index(), EDLSession::sample_rate, Asset::sample_rate, EDL::session, and LocalSession::zoom_sample.

Referenced by draw_data().

void ResourcePixmap::draw_audio_source Edit edit,
int  x,
int  w
 

Definition at line 481 of file resourcepixmap.C.

References _, Edit::asset, MWindow::audio_cache, Theme::audio_color, canvas, Edit::channel, CICache::check_in(), CICache::check_out(), edit_x, MWindow::edl, EDL::local_session, MIN, mwindow, Asset::path, pixmap_x, File::read_samples(), EDLSession::sample_rate, Asset::sample_rate, EDL::session, File::set_audio_position(), File::set_channel(), EDLSession::show_titles, Edit::startsource, TrackCanvas::test_timer(), MWindow::theme, Theme::title_bg_data, LocalSession::zoom_sample, LocalSession::zoom_track, and LocalSession::zoom_y.

Referenced by draw_audio_resource().

void ResourcePixmap::draw_data Edit edit,
int64_t  edit_x,
int64_t  edit_w,
int64_t  pixmap_x,
int64_t  pixmap_w,
int64_t  pixmap_h,
int  force,
int  indexes_only
 

Definition at line 73 of file resourcepixmap.C.

References Edit::asset, canvas, IndexFile::close_index(), Track::data_type, data_type, Track::draw, draw_audio_resource(), Theme::draw_resource_bg(), draw_title(), draw_video_resource(), edit_id, Edit::edits, Edit::edl, MWindow::edl, EDLSession::frame_rate, Asset::frame_rate, Edit::id, Asset::index_zoom, EDL::local_session, mwindow, IndexFile::open_index(), project_framerate, project_samplerate, EDLSession::sample_rate, Asset::sample_rate, EDL::session, EDLSession::show_titles, source_framerate, source_samplerate, startsource, Edit::startsource, MWindow::theme, Theme::title_bg_data, Edits::track, TRACK_AUDIO, TRACK_VIDEO, zoom_sample, LocalSession::zoom_sample, zoom_track, LocalSession::zoom_track, zoom_y, and LocalSession::zoom_y.

Referenced by TrackCanvas::draw_resources().

void ResourcePixmap::draw_title Edit edit,
int64_t  edit_x,
int64_t  edit_w,
int64_t  pixmap_x,
int64_t  pixmap_w
 

Definition at line 368 of file resourcepixmap.C.

References Edit::asset, BC_INFINITY, canvas, Edit::channel, left_margin, mwindow, Asset::path, MWindow::theme, Theme::title_bg_data, Theme::title_color, Theme::title_font, Edit::user_title, and ResizeTrackThread::w.

Referenced by draw_data().

void ResourcePixmap::draw_video_resource Edit edit,
int64_t  edit_x,
int64_t  edit_w,
int64_t  pixmap_x,
int64_t  pixmap_w,
int  refresh_x,
int  refresh_w
 

Definition at line 699 of file resourcepixmap.C.

References Edit::asset, canvas, Edit::channel, CICache::check_in(), CICache::check_out(), MWindow::edl, EDLSession::frame_rate, Edit::frame_w(), Edit::frames_per_picon(), File::get_frame_cache(), FrameCache::get_frame_ptr(), Asset::height, mwindow, Edit::picon_h(), Edit::picon_w(), FrameCache::put_frame(), File::read_frame(), EDL::session, File::set_layer(), File::set_video_position(), EDLSession::show_titles, Edit::startsource, TrackCanvas::temp_picon, TrackCanvas::test_timer(), MWindow::theme, Theme::title_bg_data, FrameCache::unlock(), MWindow::video_cache, and Asset::width.

Referenced by draw_data().

void ResourcePixmap::dump  ) 
 

Definition at line 856 of file resourcepixmap.C.

References edit_id, edit_x, pixmap_w, pixmap_x, and visible.

void ResourcePixmap::reset  ) 
 

Definition at line 52 of file resourcepixmap.C.

References edit_x, pixmap_h, pixmap_w, pixmap_x, visible, zoom_sample, zoom_track, and zoom_y.

Referenced by ResourcePixmap().

void ResourcePixmap::resize int  w,
int  h
 

Definition at line 64 of file resourcepixmap.C.

Referenced by TrackCanvas::draw_resources().

void ResourcePixmap::test_timer  ) 
 


Member Data Documentation

TrackCanvas* ResourcePixmap::canvas
 

Definition at line 48 of file resourcepixmap.h.

Referenced by draw_audio_source(), draw_data(), IndexFile::draw_index(), draw_title(), and draw_video_resource().

int ResourcePixmap::data_type
 

Definition at line 58 of file resourcepixmap.h.

Referenced by draw_data(), and ResourcePixmap().

int64_t ResourcePixmap::edit_id
 

Definition at line 52 of file resourcepixmap.h.

Referenced by draw_data(), TrackCanvas::draw_resources(), dump(), and ResourcePixmap().

int64_t ResourcePixmap::edit_x
 

Definition at line 53 of file resourcepixmap.h.

Referenced by draw_audio_source(), dump(), and reset().

MWindow* ResourcePixmap::mwindow
 

Definition at line 47 of file resourcepixmap.h.

Referenced by draw_audio_resource(), draw_audio_source(), draw_data(), draw_title(), and draw_video_resource().

int64_t ResourcePixmap::pixmap_h
 

Definition at line 53 of file resourcepixmap.h.

Referenced by TrackCanvas::draw_resources(), and reset().

int64_t ResourcePixmap::pixmap_w
 

Definition at line 53 of file resourcepixmap.h.

Referenced by TrackCanvas::draw_resources(), dump(), and reset().

int64_t ResourcePixmap::pixmap_x
 

Definition at line 53 of file resourcepixmap.h.

Referenced by draw_audio_source(), IndexFile::draw_index(), TrackCanvas::draw_resources(), dump(), and reset().

double ResourcePixmap::project_framerate
 

Definition at line 56 of file resourcepixmap.h.

Referenced by draw_data(), and ResourcePixmap().

int64_t ResourcePixmap::project_samplerate
 

Definition at line 57 of file resourcepixmap.h.

Referenced by draw_data(), and ResourcePixmap().

double ResourcePixmap::source_framerate
 

Definition at line 56 of file resourcepixmap.h.

Referenced by draw_data(), and ResourcePixmap().

int64_t ResourcePixmap::source_samplerate
 

Definition at line 57 of file resourcepixmap.h.

Referenced by draw_data(), and ResourcePixmap().

int64_t ResourcePixmap::startsource
 

Definition at line 55 of file resourcepixmap.h.

Referenced by draw_data(), and ResourcePixmap().

Timer* ResourcePixmap::timer
 

Definition at line 60 of file resourcepixmap.h.

int ResourcePixmap::visible
 

Definition at line 50 of file resourcepixmap.h.

Referenced by TrackCanvas::draw_resources(), dump(), and reset().

int64_t ResourcePixmap::zoom_sample
 

Definition at line 54 of file resourcepixmap.h.

Referenced by draw_data(), and reset().

int64_t ResourcePixmap::zoom_track
 

Definition at line 54 of file resourcepixmap.h.

Referenced by draw_data(), and reset().

int64_t ResourcePixmap::zoom_y
 

Definition at line 54 of file resourcepixmap.h.

Referenced by draw_data(), and reset().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:25 2006 for Cinelerra-svn by  doxygen 1.4.4