当前位置: 首页>>代码示例>>C++>>正文


C++ RNA_def_boolean函数代码示例

本文整理汇总了C++中RNA_def_boolean函数的典型用法代码示例。如果您正苦于以下问题:C++ RNA_def_boolean函数的具体用法?C++ RNA_def_boolean怎么用?C++ RNA_def_boolean使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了RNA_def_boolean函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: PTCACHE_OT_bake

void PTCACHE_OT_bake(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Bake Physics";
	ot->description = "Bake physics";
	ot->idname = "PTCACHE_OT_bake";
	
	/* api callbacks */
	ot->exec = ptcache_bake_exec;
	ot->poll = ptcache_poll;

	/* flags */
	ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;

	RNA_def_boolean(ot->srna, "bake", 0, "Bake", "");
}
开发者ID:vanangamudi,项目名称:blender-main,代码行数:16,代码来源:physics_pointcache.c

示例2: GRAPH_OT_reveal

static void GRAPH_OT_reveal(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Reveal Curves";
	ot->idname = "GRAPH_OT_reveal";
	ot->description = "Make previously hidden curves visible again in Graph Editor view";

	/* api callbacks */
	ot->exec = graphview_curves_reveal_exec;
	ot->poll = ED_operator_graphedit_active;

	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;

	RNA_def_boolean(ot->srna, "select", true, "Select", "");
}
开发者ID:Ichthyostega,项目名称:blender,代码行数:16,代码来源:graph_ops.c

示例3: MASK_OT_hide_view_set

void MASK_OT_hide_view_set(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Set Restrict View";
	ot->description = "Hide the layer by setting the hide flag";
	ot->idname = "MASK_OT_hide_view_set";

	/* api callbacks */
	ot->exec = mask_hide_view_set_exec;
	ot->poll = ED_maskedit_mask_poll;

	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;

	RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected rather than selected layers");
}
开发者ID:vanangamudi,项目名称:blender-main,代码行数:16,代码来源:mask_ops.c

示例4: PAINT_OT_vert_select_ungrouped

void PAINT_OT_vert_select_ungrouped(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Select Ungrouped";
	ot->idname = "PAINT_OT_vert_select_ungrouped";
	ot->description = "Select vertices without a group";

	/* api callbacks */
	ot->exec = vert_select_ungrouped_exec;
	ot->poll = vert_paint_poll;

	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;

	RNA_def_boolean(ot->srna, "extend", false, "Extend", "Extend the selection");
}
开发者ID:Eibriel,项目名称:kiriblender,代码行数:16,代码来源:paint_utils.c

示例5: BRUSH_OT_stencil_reset_transform

static void BRUSH_OT_stencil_reset_transform(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Reset Transform";
	ot->description = "Reset the stencil transformation to the default";
	ot->idname = "BRUSH_OT_stencil_reset_transform";

	/* api callbacks */
	ot->exec = stencil_reset_transform_exec;
	ot->poll = stencil_control_poll;

	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;

	RNA_def_boolean(ot->srna, "mask", 0, "Modify Mask Stencil", "Modify either the primary or mask stencil");
}
开发者ID:Andrewson3D,项目名称:blender-for-vray,代码行数:16,代码来源:paint_ops.c

示例6: NODE_OT_group_edit

void NODE_OT_group_edit(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Edit Group";
	ot->description = "Edit node group";
	ot->idname = "NODE_OT_group_edit";
	
	/* api callbacks */
	ot->exec = node_group_edit_exec;
	ot->poll = node_group_operator_active;
	
	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
	
	RNA_def_boolean(ot->srna, "exit", false, "Exit", "");
}
开发者ID:DrangPo,项目名称:blender,代码行数:16,代码来源:node_group.c

示例7: MASK_OT_select_linked_pick

void MASK_OT_select_linked_pick(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Select Linked";
	ot->idname = "MASK_OT_select_linked_pick";
	ot->description = "(De)select all points linked to the curve under the mouse cursor";

	/* api callbacks */
	ot->invoke = mask_select_linked_pick_invoke;
	ot->poll = ED_maskedit_mask_poll;

	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;

	RNA_def_boolean(ot->srna, "deselect", 0, "Deselect", "");
}
开发者ID:danielmarg,项目名称:blender-main,代码行数:16,代码来源:mask_select.c

示例8: SCREEN_OT_screencast

void SCREEN_OT_screencast(wmOperatorType *ot)
{
	ot->name = "Make Screencast";
	ot->idname = "SCREEN_OT_screencast";
	ot->description = "Capture a video of the active area or whole Blender window";
	
	ot->invoke = WM_operator_confirm;
	ot->exec = screencast_exec;
	ot->poll = screenshot_poll;  /* shared poll */
	
	ot->flag = 0;
	
	RNA_def_property(ot->srna, "filepath", PROP_STRING, PROP_FILEPATH);
	RNA_def_boolean(ot->srna, "full", 1, "Full Screen",
	                "Capture the whole window (otherwise only capture the active area)");
}
开发者ID:Moguri,项目名称:blender,代码行数:16,代码来源:screendump.c

示例9: CURVE_OT_select_linked_pick

void CURVE_OT_select_linked_pick(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Select Linked";
	ot->idname = "CURVE_OT_select_linked_pick";
	ot->description = "Select all control points linked to already selected ones";

	/* api callbacks */
	ot->invoke = select_linked_pick_invoke;
	ot->poll = ED_operator_editsurfcurve_region_view3d;

	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;

	/* properties */
	RNA_def_boolean(ot->srna, "deselect", 0, "Deselect", "Deselect linked control points rather than selecting them");
}
开发者ID:shyamalschandra,项目名称:blender_2.75a,代码行数:17,代码来源:editcurve_select.c

示例10: OBJECT_OT_shape_key_add

void OBJECT_OT_shape_key_add(wmOperatorType *ot)
{
	/* identifiers */
	ot->name= "Add Shape Key";
	ot->idname= "OBJECT_OT_shape_key_add";
	ot->description= "Add shape key to the object";
	
	/* api callbacks */
	ot->poll= shape_key_mode_poll;
	ot->exec= shape_key_add_exec;

	/* flags */
	ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;

	/* properties */
	RNA_def_boolean(ot->srna, "from_mix", 1, "From Mix", "Create the new shape key from the existing mix of keys.");
}
开发者ID:OldBrunet,项目名称:BGERTPS,代码行数:17,代码来源:object_shapekey.c

示例11: UI_OT_reset_default_button

static void UI_OT_reset_default_button(wmOperatorType *ot)
{
	/* identifiers */
	ot->name= "Reset to Default Value";
	ot->idname= "UI_OT_reset_default_button";
	ot->description= "Reset this property's value to its default value";

	/* callbacks */
	ot->poll= reset_default_button_poll;
	ot->exec= reset_default_button_exec;

	/* flags */
	ot->flag= OPTYPE_UNDO;
	
	/* properties */
	RNA_def_boolean(ot->srna, "all", 1, "All", "Reset to default values all elements of the array");
}
开发者ID:mik0001,项目名称:Blender,代码行数:17,代码来源:interface_ops.c

示例12: NODE_OT_find_node

void NODE_OT_find_node(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Find Node";
	ot->description = "Search for named node and allow to select and activate it";
	ot->idname = "NODE_OT_find_node";
	
	/* api callbacks */
	ot->invoke = node_find_node_invoke;
	ot->poll = ED_operator_node_active;
	
	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
	
	RNA_def_boolean(ot->srna, "prev", 0, "Previous", "");
	
}
开发者ID:bitfusionio,项目名称:blender,代码行数:17,代码来源:node_select.c

示例13: MASK_OT_slide_point

void MASK_OT_slide_point(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Slide Point";
	ot->description = "Slide control points";
	ot->idname = "MASK_OT_slide_point";

	/* api callbacks */
	ot->invoke = slide_point_invoke;
	ot->modal = slide_point_modal;
	ot->poll = ED_maskedit_mask_poll;

	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;

	RNA_def_boolean(ot->srna, "slide_feather", 0, "Slide Feather", "First try to slide feather instead of vertex");
}
开发者ID:castlelore,项目名称:blender-git,代码行数:17,代码来源:mask_ops.c

示例14: ANIM_OT_keyingset_button_add

void ANIM_OT_keyingset_button_add(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Add to Keying Set";
	ot->idname = "ANIM_OT_keyingset_button_add";
	ot->description = "Add current UI-active property to current keying set";
	
	/* callbacks */
	ot->exec = add_keyingset_button_exec; 
	//op->poll = ???
	
	/* flags */
	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;

	/* properties */
	RNA_def_boolean(ot->srna, "all", 1, "All", "Add all elements of the array to a Keying Set");
}
开发者ID:castlelore,项目名称:blender-git,代码行数:17,代码来源:keyingsets.c

示例15: ANIM_OT_driver_button_remove

void ANIM_OT_driver_button_remove(wmOperatorType *ot)
{
	/* identifiers */
	ot->name = "Remove Driver";
	ot->idname = "ANIM_OT_driver_button_remove";
	ot->description = "Remove the driver(s) for the property(s) connected represented by the highlighted button";
	
	/* callbacks */
	ot->exec = remove_driver_button_exec; 
	//op->poll = ??? // TODO: need to have some driver to be able to do this...
	
	/* flags */
	ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;

	/* properties */
	RNA_def_boolean(ot->srna, "all", 1, "All", "Delete drivers for all elements of the array");
}
开发者ID:Walid-Shouman,项目名称:Blender,代码行数:17,代码来源:drivers.c


注:本文中的RNA_def_boolean函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。