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

Preferences Class Reference

#include <preferences.h>

List of all members.

Public Member Functions

 Preferences ()
 ~Preferences ()
Preferencesoperator= (Preferences &that)
void copy_from (Preferences *that)
int load_defaults (Defaults *defaults)
int save_defaults (Defaults *defaults)
void boundaries ()
void add_node (char *text, int port, int enabled, float rate)
void delete_node (int number)
void delete_nodes ()
void reset_rates ()
float get_avg_rate (int use_master_node)
void sort_nodes ()
void edit_node (int number, char *new_text, int port, int enabled)
int get_enabled_nodes ()
char * get_node_hostname (int number)
int get_node_port (int number)
void copy_rates_from (Preferences *preferences)
void set_rate (float rate, int node)
int calculate_processors ()

Public Attributes

char index_directory [BCTEXTLEN]
int64_t index_size
int index_count
int use_thumbnails
char theme [BCTEXTLEN]
double render_preroll
int brender_preroll
int force_uniprocessor
int processors
Assetbrender_asset
int use_brender
int brender_fragment
int64_t cache_size
int use_renderfarm
int renderfarm_port
ArrayList< char * > renderfarm_nodes
ArrayList< int > renderfarm_ports
ArrayList< int > renderfarm_enabled
ArrayList< float > renderfarm_rate
float local_rate
char renderfarm_mountpoint [BCTEXTLEN]
int renderfarm_vfs
int renderfarm_job_count
int renderfarm_consolidate
int use_tipwindow
char global_plugin_dir [BCTEXTLEN]
char local_plugin_dir [BCTEXTLEN]
Mutex * preferences_lock


Detailed Description

Definition at line 14 of file preferences.h.


Constructor & Destructor Documentation

Preferences::Preferences  ) 
 

Definition at line 30 of file preferences.C.

References Asset::audio_data, BCASTDIR, brender_asset, brender_fragment, brender_preroll, cache_size, calculate_processors(), force_uniprocessor, Asset::format, index_count, index_directory, index_size, Asset::jpeg_quality, local_rate, Asset::path, preferences_lock, processors, render_preroll, renderfarm_job_count, renderfarm_mountpoint, renderfarm_port, renderfarm_vfs, theme, use_brender, use_renderfarm, use_thumbnails, use_tipwindow, and Asset::video_data.

Preferences::~Preferences  ) 
 

Definition at line 69 of file preferences.C.

References brender_asset, and preferences_lock.


Member Function Documentation

void Preferences::add_node char *  text,
int  port,
int  enabled,
float  rate
 

Definition at line 313 of file preferences.C.

References preferences_lock, renderfarm_enabled, renderfarm_nodes, renderfarm_ports, and renderfarm_rate.

Referenced by copy_from(), PrefsRenderFarmNewNode::handle_event(), load_defaults(), and BRenderThread::start().

void Preferences::boundaries  ) 
 

Definition at line 170 of file preferences.C.

References cache_size, CLAMP, and renderfarm_job_count.

Referenced by copy_from(), and load_defaults().

int Preferences::calculate_processors  ) 
 

Definition at line 515 of file preferences.C.

References fclose(), fgets(), fopen(), and force_uniprocessor.

Referenced by copy_from(), load_defaults(), and Preferences().

void Preferences::copy_from Preferences that  ) 
 

Definition at line 113 of file preferences.C.

References add_node(), boundaries(), brender_asset, brender_fragment, brender_preroll, cache_size, calculate_processors(), force_uniprocessor, global_plugin_dir, index_count, index_directory, index_size, local_rate, processors, render_preroll, renderfarm_consolidate, renderfarm_enabled, renderfarm_job_count, renderfarm_mountpoint, renderfarm_nodes, renderfarm_port, renderfarm_ports, renderfarm_rate, renderfarm_vfs, theme, use_brender, use_renderfarm, use_thumbnails, and use_tipwindow.

Referenced by PreferencesThread::apply_settings(), PlaybackEngine::create_objects(), operator=(), Render::render(), RenderEngine::RenderEngine(), PreferencesThread::run(), and BRenderThread::start().

void Preferences::copy_rates_from Preferences preferences  ) 
 

Definition at line 75 of file preferences.C.

References local_rate, preferences_lock, renderfarm_nodes, renderfarm_ports, and renderfarm_rate.

Referenced by PackageDispatcher::get_package().

void Preferences::delete_node int  number  ) 
 

Definition at line 327 of file preferences.C.

References preferences_lock, renderfarm_enabled, renderfarm_nodes, renderfarm_ports, and renderfarm_rate.

Referenced by PrefsRenderFarmDelNode::handle_event().

void Preferences::delete_nodes  ) 
 

Definition at line 341 of file preferences.C.

References preferences_lock, renderfarm_enabled, renderfarm_nodes, renderfarm_ports, and renderfarm_rate.

Referenced by BRenderThread::start().

void Preferences::edit_node int  number,
char *  new_text,
int  port,
int  enabled
 

Definition at line 460 of file preferences.C.

References renderfarm_enabled, renderfarm_nodes, and renderfarm_ports.

Referenced by PrefsRenderFarmReplaceNode::handle_event().

float Preferences::get_avg_rate int  use_master_node  ) 
 

Definition at line 384 of file preferences.C.

References local_rate, preferences_lock, renderfarm_enabled, and renderfarm_rate.

Referenced by PackageDispatcher::get_package().

int Preferences::get_enabled_nodes  ) 
 

Definition at line 474 of file preferences.C.

References renderfarm_enabled.

Referenced by PackageDispatcher::create_packages(), and RenderFarmServer::start_clients().

char * Preferences::get_node_hostname int  number  ) 
 

Definition at line 482 of file preferences.C.

References renderfarm_enabled, and renderfarm_nodes.

Referenced by RenderFarmServerThread::start_loop().

int Preferences::get_node_port int  number  ) 
 

Definition at line 498 of file preferences.C.

References renderfarm_enabled, and renderfarm_ports.

Referenced by RenderFarmServerThread::start_loop().

int Preferences::load_defaults Defaults *  defaults  ) 
 

Definition at line 183 of file preferences.C.

References add_node(), boundaries(), brender_asset, brender_fragment, brender_preroll, cache_size, calculate_processors(), force_uniprocessor, global_plugin_dir, index_count, index_directory, index_size, Asset::load_defaults(), local_rate, processors, render_preroll, renderfarm_consolidate, renderfarm_job_count, renderfarm_mountpoint, renderfarm_port, theme, use_brender, use_renderfarm, use_thumbnails, and use_tipwindow.

Referenced by MWindow::init_preferences(), RenderFarmClientThread::read_preferences(), RenderFarmClient::RenderFarmClient(), and BatchRenderThread::start_rendering().

Preferences & Preferences::operator= Preferences that  ) 
 

Definition at line 176 of file preferences.C.

References copy_from().

void Preferences::reset_rates  ) 
 

Definition at line 353 of file preferences.C.

References local_rate, renderfarm_nodes, and renderfarm_rate.

Referenced by PrefsRenderFarmReset::handle_event(), and PrefsRenderFarmNewNode::handle_event().

int Preferences::save_defaults Defaults *  defaults  ) 
 

Definition at line 261 of file preferences.C.

References brender_asset, brender_fragment, brender_preroll, cache_size, force_uniprocessor, index_count, index_directory, index_size, local_rate, render_preroll, renderfarm_consolidate, renderfarm_enabled, renderfarm_job_count, renderfarm_mountpoint, renderfarm_nodes, renderfarm_port, renderfarm_ports, renderfarm_rate, Asset::save_defaults(), theme, use_brender, use_renderfarm, use_thumbnails, and use_tipwindow.

Referenced by MWindow::save_defaults(), and RenderFarmServerThread::send_preferences().

void Preferences::set_rate float  rate,
int  node
 

Definition at line 362 of file preferences.C.

References local_rate, renderfarm_enabled, renderfarm_nodes, and renderfarm_rate.

Referenced by PackageDispatcher::get_package().

void Preferences::sort_nodes  ) 
 

Definition at line 429 of file preferences.C.

References renderfarm_enabled, renderfarm_nodes, renderfarm_ports, and renderfarm_rate.

Referenced by PrefsRenderFarmSortNodes::handle_event().


Member Data Documentation

Asset* Preferences::brender_asset
 

Definition at line 65 of file preferences.h.

Referenced by PreferencesThread::apply_settings(), RenderEngine::arm_command(), copy_from(), PerformancePrefs::create_objects(), VRender::get_colormodel(), load_defaults(), Preferences(), VRender::process_buffer(), save_defaults(), BRenderThread::start(), and ~Preferences().

int Preferences::brender_fragment
 

Definition at line 68 of file preferences.h.

Referenced by copy_from(), PackageDispatcher::create_packages(), PrefsBRenderFragment::handle_event(), load_defaults(), Preferences(), and save_defaults().

int Preferences::brender_preroll
 

Definition at line 59 of file preferences.h.

Referenced by copy_from(), PackageRenderer::create_engine(), PrefsBRenderPreroll::handle_event(), load_defaults(), Preferences(), and save_defaults().

int64_t Preferences::cache_size
 

Definition at line 72 of file preferences.h.

Referenced by CICache::age(), boundaries(), copy_from(), CICacheSize::handle_event(), load_defaults(), Preferences(), and save_defaults().

int Preferences::force_uniprocessor
 

Definition at line 60 of file preferences.h.

Referenced by PreferencesThread::apply_settings(), calculate_processors(), copy_from(), PrefsForceUniprocessor::handle_event(), load_defaults(), Preferences(), and save_defaults().

char Preferences::global_plugin_dir[BCTEXTLEN]
 

Definition at line 95 of file preferences.h.

Referenced by copy_from(), PluginPrefs::create_objects(), PluginGlobalPathText::handle_event(), MWindow::init_plugins(), and load_defaults().

int Preferences::index_count
 

Definition at line 53 of file preferences.h.

Referenced by MWindow::clean_indexes(), copy_from(), IndexCount::handle_event(), load_defaults(), Preferences(), and save_defaults().

char Preferences::index_directory[BCTEXTLEN]
 

Definition at line 50 of file preferences.h.

Referenced by MainIndexes::add_next_asset(), MWindow::clean_indexes(), copy_from(), IndexFile::create_index(), FileMPEG::create_index(), IndexFile::delete_index(), IndexPathText::handle_event(), load_defaults(), MWindow::load_filenames(), IndexFile::open_file(), Preferences(), MWindow::rebuild_indices(), DeleteAllIndexes::run(), AssetEdit::run(), and save_defaults().

int64_t Preferences::index_size
 

Definition at line 52 of file preferences.h.

Referenced by copy_from(), IndexFile::get_required_scale(), IndexSize::handle_event(), IndexThread::IndexThread(), load_defaults(), Preferences(), and save_defaults().

char Preferences::local_plugin_dir[BCTEXTLEN]
 

Definition at line 96 of file preferences.h.

Referenced by PluginPrefs::create_objects(), and PluginLocalPathText::handle_event().

float Preferences::local_rate
 

Definition at line 82 of file preferences.h.

Referenced by copy_from(), copy_rates_from(), get_avg_rate(), PrefsRenderFarmReset::handle_event(), load_defaults(), Preferences(), reset_rates(), save_defaults(), set_rate(), and BRenderThread::start().

Mutex* Preferences::preferences_lock
 

Definition at line 99 of file preferences.h.

Referenced by add_node(), copy_rates_from(), delete_node(), delete_nodes(), get_avg_rate(), Preferences(), and ~Preferences().

int Preferences::processors
 

Definition at line 62 of file preferences.h.

Referenced by CICacheItem::CICacheItem(), copy_from(), PackageRenderer::create_engine(), PackageRenderer::create_output(), PackageRenderer::do_video(), VModule::import_frame(), load_defaults(), RenderEngine::open_output(), Record::open_output_file(), PluginClient::plugin_init_realtime(), Preferences(), RecVideoMJPGThread::render_frame(), MenuEffectThread::run(), SetChannelsCanvas::SetChannelsCanvas(), PluginServer::show_gui(), VirtualVNode::VirtualVNode(), and VRender::VRender().

double Preferences::render_preroll
 

Definition at line 58 of file preferences.h.

Referenced by copy_from(), PackageRenderer::create_engine(), PrefsRenderPreroll::handle_event(), load_defaults(), Preferences(), save_defaults(), and Render::start_progress().

int Preferences::renderfarm_consolidate
 

Definition at line 89 of file preferences.h.

Referenced by copy_from(), PrefsRenderFarmConsolidate::handle_event(), load_defaults(), and save_defaults().

ArrayList<int> Preferences::renderfarm_enabled
 

Definition at line 79 of file preferences.h.

Referenced by add_node(), copy_from(), delete_node(), delete_nodes(), edit_node(), PerformancePrefs::generate_node_list(), get_avg_rate(), get_enabled_nodes(), get_node_hostname(), get_node_port(), PrefsRenderFarmReplaceNode::handle_event(), PrefsRenderFarmNodes::handle_event(), save_defaults(), set_rate(), and sort_nodes().

int Preferences::renderfarm_job_count
 

Definition at line 87 of file preferences.h.

Referenced by boundaries(), copy_from(), PackageDispatcher::create_packages(), PrefsRenderFarmJobs::handle_event(), load_defaults(), Preferences(), and save_defaults().

char Preferences::renderfarm_mountpoint[BCTEXTLEN]
 

Definition at line 83 of file preferences.h.

Referenced by copy_from(), PrefsRenderFarmMountpoint::handle_event(), load_defaults(), Preferences(), and save_defaults().

ArrayList<char*> Preferences::renderfarm_nodes
 

Definition at line 77 of file preferences.h.

Referenced by add_node(), copy_from(), copy_rates_from(), PackageDispatcher::create_packages(), delete_node(), delete_nodes(), edit_node(), PerformancePrefs::generate_node_list(), get_node_hostname(), reset_rates(), save_defaults(), set_rate(), and sort_nodes().

int Preferences::renderfarm_port
 

Definition at line 75 of file preferences.h.

Referenced by copy_from(), PrefsRenderFarmReplaceNode::handle_event(), PrefsRenderFarmNewNode::handle_event(), PrefsRenderFarmPort::handle_event(), load_defaults(), Preferences(), and save_defaults().

ArrayList<int> Preferences::renderfarm_ports
 

Definition at line 78 of file preferences.h.

Referenced by add_node(), copy_from(), copy_rates_from(), delete_node(), delete_nodes(), edit_node(), PerformancePrefs::generate_node_list(), get_node_port(), save_defaults(), and sort_nodes().

ArrayList<float> Preferences::renderfarm_rate
 

Definition at line 80 of file preferences.h.

Referenced by add_node(), copy_from(), copy_rates_from(), delete_node(), delete_nodes(), PerformancePrefs::generate_node_list(), get_avg_rate(), reset_rates(), save_defaults(), set_rate(), and sort_nodes().

int Preferences::renderfarm_vfs
 

Definition at line 85 of file preferences.h.

Referenced by copy_from(), PackageRenderer::create_output(), PrefsRenderFarmVFS::handle_event(), and Preferences().

char Preferences::theme[BCTEXTLEN]
 

Definition at line 57 of file preferences.h.

Referenced by copy_from(), ViewThemeItem::handle_event(), MWindow::init_theme(), load_defaults(), Preferences(), and save_defaults().

int Preferences::use_brender
 

Definition at line 66 of file preferences.h.

Referenced by copy_from(), TrackCanvas::draw_brender_start(), MTimeBar::draw_range(), PrefsUseBRender::handle_event(), MWindow::init_brender(), load_defaults(), Preferences(), and save_defaults().

int Preferences::use_renderfarm
 

Definition at line 74 of file preferences.h.

Referenced by copy_from(), FormatTools::create_objects(), PackageRenderer::create_output(), BatchRenderJob::fix_strategy(), PrefsRenderFarm::handle_event(), FormatMultiple::handle_event(), load_defaults(), Preferences(), Render::render(), save_defaults(), and BRenderThread::start().

int Preferences::use_thumbnails
 

Definition at line 55 of file preferences.h.

Referenced by copy_from(), AssetPicon::create_objects(), ViewThumbnails::handle_event(), load_defaults(), Preferences(), and save_defaults().

int Preferences::use_tipwindow
 

Definition at line 92 of file preferences.h.

Referenced by copy_from(), MWindow::create_objects(), TipDisable::handle_event(), UseTipWindow::handle_event(), load_defaults(), Preferences(), and save_defaults().


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