void ScriptingVector3Filter2Pole::archive (const std::shared_ptr<Archive> &archive)
{
    ScriptingBase::archive(archive);

    archive->push_domain (class_id ());
    
	*archive << ARCHIVE_PLUG(_in, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_out, DATA_PERSISTENT);
	
	*archive << ARCHIVE_DATA_ACCESSORS("Type", ScriptingVector3Filter2Pole::filter_type, ScriptingVector3Filter2Pole::set_filter_type, DATA_PERSISTENT | DATA_SETTABLE)
        .add_enum("Butterworth Low Pass")
        .add_enum("Critically Damped Low Pass")
        .add_enum("Bessel Low Pass");

	*archive << ARCHIVE_DATA_ACCESSORS("Num_Passes", ScriptingVector3Filter2Pole::num_passes, ScriptingVector3Filter2Pole::set_num_passes, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Freq_3db", ScriptingVector3Filter2Pole::freq3db, ScriptingVector3Filter2Pole::set_freq3db, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Freq_Sampling", ScriptingVector3Filter2Pole::freq_sampling, ScriptingVector3Filter2Pole::set_freq_sampling, DATA_PERSISTENT | DATA_SETTABLE);

	for (DTuint i = 0; i < _passes.size(); ++i) {
        *archive << ARCHIVE_DATA_RAW(_passes[i]._fx, DATA_PERSISTENT | DATA_SETTABLE);
        *archive << ARCHIVE_DATA_RAW(_passes[i]._fy, DATA_PERSISTENT | DATA_SETTABLE);
        *archive << ARCHIVE_DATA_RAW(_passes[i]._fz, DATA_PERSISTENT | DATA_SETTABLE);
	}

    archive->pop_domain ();
}
Example #2
0
void ComponentDrawCamera::archive_write (Archive *archive)
{
    ComponentBase::archive_write(archive);

    archive->push_domain (getClassID ());
	*archive << ARCHIVE_DATA_ACCESSORS("Color", ComponentDrawCamera::getColor, ComponentDrawCamera::setColor, DATA_PERSISTENT | DATA_SETTABLE);
    archive->pop_domain ();
}
Example #3
0
void ComponentGUIDrawIcon::archive (const std::shared_ptr<Archive> &archive)
{
    ComponentBase::archive(archive);

    archive->push_domain (class_id ());
	
    *archive << ARCHIVE_DATA_ACCESSORS("Material", ComponentGUIDrawIcon::material, ComponentGUIDrawIcon::set_material, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_DATA_ACCESSORS("Pressed_Material", ComponentGUIDrawIcon::pressed_material, ComponentGUIDrawIcon::set_pressed_material, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Shader", ComponentGUIDrawIcon::shader, ComponentGUIDrawIcon::set_shader, DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_DATA_ACCESSORS("Draw_Style", ComponentGUIDrawIcon::draw_style, ComponentGUIDrawIcon::set_draw_style, DATA_PERSISTENT | DATA_SETTABLE)
        .add_enum("Stretch Center 3x3")
        .add_enum("Stretch Center 2x2")
        .add_enum("Rectangle");

	*archive << ARCHIVE_DATA(_corner_width, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA(_corner_height, DATA_PERSISTENT | DATA_SETTABLE);

    archive->pop_domain ();
}
Example #4
0
void ComponentDrawFlare::archive_write (Archive *archive)
{
    ComponentBase::archive_write(archive);

    archive->push_domain (getClassID ());
	
	*archive << ARCHIVE_PLUG(_alpha, DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_DATA_ACCESSORS("Material0", ComponentDrawFlare::getMaterial0, ComponentDrawFlare::setMaterial0, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Size0",_size[0], DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Pos0",_pos[0], DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_DATA_ACCESSORS("Material1", ComponentDrawFlare::getMaterial1, ComponentDrawFlare::setMaterial1, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Size1",_size[1], DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Pos1",_pos[1], DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_DATA_ACCESSORS("Material2", ComponentDrawFlare::getMaterial2, ComponentDrawFlare::setMaterial2, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Size2",_size[2], DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Pos2",_pos[2], DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_DATA_ACCESSORS("Material3", ComponentDrawFlare::getMaterial3, ComponentDrawFlare::setMaterial3, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Size3",_size[3], DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Pos3",_pos[3], DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_DATA_ACCESSORS("Material4", ComponentDrawFlare::getMaterial4, ComponentDrawFlare::setMaterial4, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Size4",_size[4], DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Pos4",_pos[4], DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_DATA_ACCESSORS("Material5", ComponentDrawFlare::getMaterial5, ComponentDrawFlare::setMaterial5, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Size5",_size[5], DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_NAMED("Pos5",_pos[5], DATA_PERSISTENT | DATA_SETTABLE);	

    archive->pop_domain ();
}
Example #5
0
void CameraObject::archive (const std::shared_ptr<Archive> &archive)
{
    PlaceableObject::archive(archive);

    archive->push_domain (class_id ());

    *archive << ARCHIVE_DATA(_perspective, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_DATA(_perspective_fill_width, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_DATA(_left, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_DATA(_right, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_DATA(_top, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_DATA(_bottom, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_DATA(_near, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_DATA(_far, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_DATA(_post_projection, DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_DATA_ACCESSORS("Far_Plane", CameraObject::far_plane, CameraObject::set_far_plane, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Near_Plane", CameraObject::near_plane, CameraObject::set_near_plane, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Angle", CameraObject::angle, CameraObject::set_angle, DATA_PERSISTENT | DATA_SETTABLE)
        .add_range(0.0F,180.0F);
    *archive << ARCHIVE_DATA_ACCESSORS("Aspect_Ratio_Mul", CameraObject::aspect_ratio_mul, CameraObject::set_aspect_ratio_mul, DATA_PERSISTENT | DATA_SETTABLE);

    archive->pop_domain ();
}
Example #6
0
void PlaceableObject::archive (const std::shared_ptr<Archive> &archive)
{
    ObjectBase::archive(archive);

	archive->push_domain (class_id ());
        	
	*archive << ARCHIVE_DATA_ACCESSORS("Pickable_In_Editor", PlaceableObject::is_pickable, PlaceableObject::set_pickable, DATA_PERSISTENT | DATA_SETTABLE);
	
	*archive << ARCHIVE_PLUG(_translation, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_radius, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_orientation, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_PLUG(_scale, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_PLUG(_velocity, DATA_PERSISTENT | DATA_SETTABLE);
    *archive << ARCHIVE_PLUG(_angular_velocity, DATA_PERSISTENT | DATA_SETTABLE);
			               								  
    archive->pop_domain ();
	
}
Example #7
0
void ComponentGUIScrollerGrid::archive_read (Archive *archive)
{
    ComponentGUIScroller::archive_read(archive);

	archive->push_domain (getClassID ());
    
	*archive << ARCHIVE_DATA_ACCESSORS("Num_Columns", ComponentGUIScrollerGrid::getNumColumns, ComponentGUIScrollerGrid::setNumColumns, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Num_Rows", ComponentGUIScrollerGrid::getNumRows, ComponentGUIScrollerGrid::setNumRows, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Column_Width", ComponentGUIScrollerGrid::getColumnWidth, ComponentGUIScrollerGrid::setColumnWidth, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Row_Height", ComponentGUIScrollerGrid::getRowHeight, ComponentGUIScrollerGrid::setRowHeight, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Column_Padding", ComponentGUIScrollerGrid::getColumnPadding, ComponentGUIScrollerGrid::setColumnPadding, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_DATA_ACCESSORS("Row_Padding", ComponentGUIScrollerGrid::getRowPadding, ComponentGUIScrollerGrid::setRowPadding, DATA_PERSISTENT | DATA_SETTABLE);
    
    archive->pop_domain ();
}
Example #8
0
void ScriptingCompute::archive (const std::shared_ptr<Archive> &archive)
{
    ScriptingBase::archive(archive);

	archive->push_domain (class_id ());
	        
	*archive << ARCHIVE_PLUG(_in_a1, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_in_a2, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_in_a3, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_in_a4, DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_PLUG(_in_b1, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_in_b2, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_in_b3, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_in_b4, DATA_PERSISTENT | DATA_SETTABLE);

	*archive << ARCHIVE_PLUG(_in_c1, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_in_c2, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_in_c3, DATA_PERSISTENT | DATA_SETTABLE);
	*archive << ARCHIVE_PLUG(_in_c4, DATA_PERSISTENT | DATA_SETTABLE);
													

	*archive << ARCHIVE_PLUG(_out_a1, DATA_PERSISTENT);
	*archive << ARCHIVE_PLUG(_out_a2, DATA_PERSISTENT);
	*archive << ARCHIVE_PLUG(_out_a3, DATA_PERSISTENT);
	*archive << ARCHIVE_PLUG(_out_a4, DATA_PERSISTENT);

	*archive << ARCHIVE_PLUG(_out_b1, DATA_PERSISTENT);
	*archive << ARCHIVE_PLUG(_out_b2, DATA_PERSISTENT);
	*archive << ARCHIVE_PLUG(_out_b3, DATA_PERSISTENT);
	*archive << ARCHIVE_PLUG(_out_b4, DATA_PERSISTENT);

	*archive << ARCHIVE_PLUG(_out_c1, DATA_PERSISTENT);
	*archive << ARCHIVE_PLUG(_out_c2, DATA_PERSISTENT);
	*archive << ARCHIVE_PLUG(_out_c3, DATA_PERSISTENT);
	*archive << ARCHIVE_PLUG(_out_c4, DATA_PERSISTENT);
													
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_A1", ScriptingCompute::eq_a1, ScriptingCompute::set_eq_a1, DATA_PERSISTENT | DATA_SETTABLE);
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_A2", ScriptingCompute::eq_a2, ScriptingCompute::set_eq_a2, DATA_PERSISTENT | DATA_SETTABLE);
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_A3", ScriptingCompute::eq_a3, ScriptingCompute::set_eq_a3, DATA_PERSISTENT | DATA_SETTABLE);
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_A4", ScriptingCompute::eq_a4, ScriptingCompute::set_eq_a4, DATA_PERSISTENT | DATA_SETTABLE);
                                                                                                                                              
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_B1", ScriptingCompute::eq_b1, ScriptingCompute::set_eq_b1, DATA_PERSISTENT | DATA_SETTABLE);
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_B2", ScriptingCompute::eq_b2, ScriptingCompute::set_eq_b2, DATA_PERSISTENT | DATA_SETTABLE);
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_B3", ScriptingCompute::eq_b3, ScriptingCompute::set_eq_b3, DATA_PERSISTENT | DATA_SETTABLE);
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_B4", ScriptingCompute::eq_b4, ScriptingCompute::set_eq_b4, DATA_PERSISTENT | DATA_SETTABLE);

  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_C1", ScriptingCompute::eq_c1, ScriptingCompute::set_eq_c1, DATA_PERSISTENT | DATA_SETTABLE);
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_C2", ScriptingCompute::eq_c2, ScriptingCompute::set_eq_c2, DATA_PERSISTENT | DATA_SETTABLE);
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_C3", ScriptingCompute::eq_c3, ScriptingCompute::set_eq_c3, DATA_PERSISTENT | DATA_SETTABLE);
  	*archive << ARCHIVE_DATA_ACCESSORS("Eq_C4", ScriptingCompute::eq_c4, ScriptingCompute::set_eq_c4, DATA_PERSISTENT | DATA_SETTABLE);
													
    archive->pop_domain ();
}