Blender V2.61 - r43446
Enumerations | Functions

paint_ops.c File Reference

#include "MEM_guardedalloc.h"
#include <stdlib.h>
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_brush_types.h"
#include "BKE_brush.h"
#include "BKE_context.h"
#include "BKE_paint.h"
#include "BKE_main.h"
#include "ED_sculpt.h"
#include "ED_screen.h"
#include "UI_resources.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "paint_intern.h"
#include "sculpt_intern.h"
#include <string.h>
#include <stddef.h>

Go to the source code of this file.

Enumerations

enum  RCFlags { RC_COLOR = 1, RC_ROTATION = 2, RC_ZOOM = 4 }

Functions

static int brush_add_exec (bContext *C, wmOperator *UNUSED(op))
static void BRUSH_OT_add (wmOperatorType *ot)
static int brush_scale_size_exec (bContext *C, wmOperator *op)
static void BRUSH_OT_scale_size (wmOperatorType *ot)
static int vertex_color_set_exec (bContext *C, wmOperator *UNUSED(op))
static void PAINT_OT_vertex_color_set (wmOperatorType *ot)
static int brush_reset_exec (bContext *C, wmOperator *UNUSED(op))
static void BRUSH_OT_reset (wmOperatorType *ot)
static Brushbrush_tool_cycle (Main *bmain, Brush *brush_orig, const int tool, const size_t tool_offset, const int ob_mode)
static int brush_generic_tool_set (Main *bmain, Paint *paint, const int tool, const size_t tool_offset, const int ob_mode)
static int brush_sculpt_tool_set_exec (bContext *C, wmOperator *op)
static void BRUSH_OT_sculpt_tool_set (wmOperatorType *ot)
static int brush_vertex_tool_set_exec (bContext *C, wmOperator *op)
static void BRUSH_OT_vertex_tool_set (wmOperatorType *ot)
static int brush_weight_tool_set_exec (bContext *C, wmOperator *op)
static void BRUSH_OT_weight_tool_set (wmOperatorType *ot)
static int brush_image_tool_set_exec (bContext *C, wmOperator *op)
static void BRUSH_OT_image_tool_set (wmOperatorType *ot)
void ED_operatortypes_paint (void)
static void ed_keymap_paint_brush_switch (wmKeyMap *keymap, const char *mode)
static void ed_keymap_paint_brush_size (wmKeyMap *keymap, const char *UNUSED(path))
static void set_brush_rc_path (PointerRNA *ptr, const char *brush_path, const char *output_name, const char *input_name)
static void set_brush_rc_props (PointerRNA *ptr, const char *paint, const char *prop, const char *secondary_prop, RCFlags flags)
static void ed_keymap_paint_brush_radial_control (wmKeyMap *keymap, const char *paint, RCFlags flags)
void ED_keymap_paint (wmKeyConfig *keyconf)

Detailed Description

Definition in file paint_ops.c.


Enumeration Type Documentation

enum RCFlags
Enumerator:
RC_COLOR 
RC_ROTATION 
RC_ZOOM 

Definition at line 419 of file paint_ops.c.


Function Documentation

static int brush_add_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int brush_generic_tool_set ( Main bmain,
Paint paint,
const int  tool,
const size_t  tool_offset,
const int  ob_mode 
) [static]
static int brush_image_tool_set_exec ( bContext C,
wmOperator op 
) [static]
static void BRUSH_OT_add ( wmOperatorType ot) [static]
static void BRUSH_OT_image_tool_set ( wmOperatorType ot) [static]
static void BRUSH_OT_reset ( wmOperatorType ot) [static]
static void BRUSH_OT_scale_size ( wmOperatorType ot) [static]
static void BRUSH_OT_sculpt_tool_set ( wmOperatorType ot) [static]
static void BRUSH_OT_vertex_tool_set ( wmOperatorType ot) [static]
static void BRUSH_OT_weight_tool_set ( wmOperatorType ot) [static]
static int brush_reset_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int brush_scale_size_exec ( bContext C,
wmOperator op 
) [static]
static int brush_sculpt_tool_set_exec ( bContext C,
wmOperator op 
) [static]
static Brush* brush_tool_cycle ( Main bmain,
Brush brush_orig,
const int  tool,
const size_t  tool_offset,
const int  ob_mode 
) [static]

Definition at line 202 of file paint_ops.c.

References Main::brush, ListBase::first, Brush::id, ID::next, NULL, and Brush::ob_mode.

Referenced by brush_generic_tool_set().

static int brush_vertex_tool_set_exec ( bContext C,
wmOperator op 
) [static]
static int brush_weight_tool_set_exec ( bContext C,
wmOperator op 
) [static]
void ED_keymap_paint ( wmKeyConfig keyconf)
static void ed_keymap_paint_brush_radial_control ( wmKeyMap keymap,
const char *  paint,
RCFlags  flags 
) [static]
static void ed_keymap_paint_brush_size ( wmKeyMap keymap,
const char *  UNUSEDpath 
) [static]
static void ed_keymap_paint_brush_switch ( wmKeyMap keymap,
const char *  mode 
) [static]
void ED_operatortypes_paint ( void  )
static void PAINT_OT_vertex_color_set ( wmOperatorType ot) [static]
static void set_brush_rc_path ( PointerRNA ptr,
const char *  brush_path,
const char *  output_name,
const char *  input_name 
) [static]

Definition at line 425 of file paint_ops.c.

References BLI_sprintfN(), MEM_freeN(), and RNA_string_set().

Referenced by set_brush_rc_props().

static void set_brush_rc_props ( PointerRNA ptr,
const char *  paint,
const char *  prop,
const char *  secondary_prop,
RCFlags  flags 
) [static]
static int vertex_color_set_exec ( bContext C,
wmOperator UNUSEDop 
) [static]