|
Blender V4.5
|
#include "BLI_listbase.h"#include "BLI_string.h"#include "BLI_string_ref.hh"#include "BKE_context.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BLT_translation.hh"#include "DNA_cachefile_types.h"#include "DNA_space_types.h"#include "DEG_depsgraph_query.hh"#include "RE_engine.h"#include "RNA_access.hh"#include "UI_interface.hh"#include "interface_intern.hh"Go to the source code of this file.
Functions | |
| void | uiTemplateCacheFileVelocity (uiLayout *layout, PointerRNA *fileptr) |
| void | uiTemplateCacheFileProcedural (uiLayout *layout, const bContext *C, PointerRNA *fileptr) |
| void | uiTemplateCacheFileTimeSettings (uiLayout *layout, PointerRNA *fileptr) |
| static void | cache_file_layer_item (uiList *, const bContext *, uiLayout *layout, PointerRNA *, PointerRNA *itemptr, int, PointerRNA *, const char *, int, int) |
| uiListType * | UI_UL_cache_file_layers () |
| void | uiTemplateCacheFileLayers (uiLayout *layout, const bContext *C, PointerRNA *fileptr) |
| bool | uiTemplateCacheFilePointer (PointerRNA *ptr, const StringRefNull propname, PointerRNA *r_file_ptr) |
| void | uiTemplateCacheFile (uiLayout *layout, const bContext *C, PointerRNA *ptr, const StringRefNull propname) |
|
static |
Definition at line 129 of file interface_template_cache_file.cc.
References uiLayout::prop(), uiLayout::row(), and UI_ITEM_R_NO_BG.
Referenced by UI_UL_cache_file_layers().
| uiListType * UI_UL_cache_file_layers | ( | ) |
Definition at line 145 of file interface_template_cache_file.cc.
References cache_file_layer_item(), uiListType::draw_item, uiListType::idname, MEM_callocN(), and STRNCPY().
Referenced by ED_uilisttypes_ui().
| void uiTemplateCacheFile | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Draw the main CacheFile properties and operators (file path, scale, etc.), that is those which do not have their own dedicated template functions.
Definition at line 220 of file interface_template_cache_file.cc.
References BCONTEXT_CONSTRAINT, C, CTX_wm_space_properties(), PointerRNA::data, IFACE_, SpaceProperties::mainb, uiLayout::op(), uiLayout::prop(), ptr, uiLayout::row(), UI_ITEM_NONE, uiLayoutSetContextPointer(), uiLayoutSetPropSep(), uiTemplateCacheFilePointer(), and uiTemplateID().
Referenced by panel_draw().
| void uiTemplateCacheFileLayers | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | fileptr ) |
Draw the override layers related properties of the CacheFile.
Definition at line 155 of file interface_template_cache_file.cc.
References BLI_listbase_count(), C, col, uiLayout::column(), PointerRNA::data, CacheFile::layers, RNA_pointer_is_null(), uiLayout::row(), UI_TEMPLATE_LIST_FLAG_NONE, uiLayoutSetContextPointer(), UILST_LAYOUT_DEFAULT, and uiTemplateList().
Referenced by override_layers_panel_draw().
| bool uiTemplateCacheFilePointer | ( | PointerRNA * | ptr, |
| blender::StringRefNull | propname, | ||
| PointerRNA * | r_file_ptr ) |
Lookup the CacheFile PointerRNA of the given pointer and return it in the output parameter. Returns true if ptr has a RNACacheFile, false otherwise. If false, the output parameter is not initialized.
Definition at line 194 of file interface_template_cache_file.cc.
References blender::StringRefNull::c_str(), printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by override_layers_panel_draw(), render_procedural_panel_draw(), time_panel_draw(), uiTemplateCacheFile(), and velocity_panel_draw().
| void uiTemplateCacheFileProcedural | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | fileptr ) |
Draw the render procedural related properties of the CacheFile.
Definition at line 46 of file interface_template_cache_file.cc.
References BKE_scene_uses_cycles(), BKE_scene_uses_cycles_experimental_features(), C, CACHEFILE_TYPE_ALEMBIC, CTX_data_depsgraph_pointer(), CTX_data_engine_type(), CTX_data_scene(), PointerRNA::data, DEG_get_evaluated(), uiLayout::label(), uiLayout::prop(), RE_engine_supports_alembic_procedural(), RNA_boolean_get(), RNA_pointer_is_null(), uiLayout::row(), RPT_, CacheFile::type, UI_ITEM_NONE, uiLayoutSetActive(), uiLayoutSetContextPointer(), and uiLayoutSetEnabled().
Referenced by render_procedural_panel_draw().
| void uiTemplateCacheFileTimeSettings | ( | uiLayout * | layout, |
| PointerRNA * | fileptr ) |
Draw the time related properties of the CacheFile.
Definition at line 101 of file interface_template_cache_file.cc.
References IFACE_, uiLayout::prop(), RNA_boolean_get(), RNA_pointer_is_null(), uiLayout::row(), UI_ITEM_NONE, uiItemDecoratorR(), uiLayoutSetActive(), uiLayoutSetContextPointer(), and uiLayoutSetPropDecorate().
Referenced by time_panel_draw().
| void uiTemplateCacheFileVelocity | ( | uiLayout * | layout, |
| PointerRNA * | fileptr ) |
Draw the velocity related properties of the CacheFile.
Definition at line 33 of file interface_template_cache_file.cc.
References uiLayout::prop(), RNA_pointer_is_null(), UI_ITEM_NONE, and uiLayoutSetContextPointer().
Referenced by velocity_panel_draw().