Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
19
Добавлен:
09.02.2015
Размер:
297.47 Кб
Скачать

If strcmpi(objTag,'DoNotIgnore')

flag = true;

else

flag = false;

end

EXAMPLE 5: (copy into a file)

function demo

% Listen to rotate events

surf(peaks);

h = rotate3d;

set(h,'ActionPreCallback',@myprecallback);

set(h,'ActionPostCallback',@mypostcallback);

set(h,'Enable','on');

function myprecallback(obj,evd)

disp('A rotation is about to occur.');

function mypostcallback(obj,evd)

newView = round(get(evd.Axes,'View'));

msgbox(sprintf('The new view is [%d %d].',newView));

See also zoom, pan.

Reference page in Help browser

doc rotate3d

Camera control

<campos> - Camera position.

CAMPOS Camera position.

CP = CAMPOS gets the camera position of the current

axes.

CAMPOS([X Y Z]) sets the camera position.

CPMODE = CAMPOS('mode') gets the camera position mode.

CAMPOS(mode) sets the camera position mode.

(mode can be 'auto' or 'manual')

CAMPOS(AX,...) uses axes AX instead of current axes.

CAMPOS sets or gets the CameraPosition or CameraPositionMode

property of an axes.

See also camtarget, camva, camproj, camup.

Reference page in Help browser

doc campos

<camtarget> - Camera target.

CAMTARGET Camera target.

CT = CAMTARGET gets the camera target of the current

axes.

CAMTARGET([X Y Z]) sets the camera target.

CTMODE = CAMTARGET('mode') gets the camera target mode.

CAMTARGET(mode) sets the camera target mode.

(mode can be 'auto' or 'manual')

CAMTARGET(AX,...) uses axes AX instead of current axes.

CAMTARGET sets or gets the CameraTarget or CameraTargetMode

property of an axes.

See also campos, camva, camproj, camup.

Reference page in Help browser

doc camtarget

<camva> - Camera view angle.

CAMVA Camera view angle.

CVA = CAMVA gets the camera view angle of the current

axes.

CAMVA(val) sets the camera view angle.

CVAMODE = CAMVA('mode') gets the camera view angle mode.

CAMVA(mode) sets the camera view angle mode.

(mode can be 'auto' or 'manual')

CAMVA(AX,...) uses axes AX instead of current axes.

CAMVA sets or gets the CameraViewAngle or CameraViewAngleMode

property of an axes.

See also campos, camtarget, camproj, camup.

Reference page in Help browser

doc camva

<camup> - Camera up vector.

CAMUP Camera up vector.

UP = CAMUP gets the camera up vector of the current

axes.

CAMUP([X Y Z]) sets the camera up vector.

UPMODE = CAMUP('mode') gets the camera up vector mode.

CAMUP(mode) sets the camera up vector mode.

(mode can be 'auto' or 'manual')

CAMUP(AX,...) uses axes AX instead of current axes.

CAMUP sets or gets the CameraUpVector or CameraUpVectorMode

property of an axes.

See also campos, camtarget, camproj, camup.

Reference page in Help browser

doc camup

<camproj> - Camera projection.

CAMPROJ Camera projection.

PROJ = CAMPROJ gets the camera projection of the current

axes.

CAMPROJ(projection) sets the camera projection.

CAMPROJ(AX,...) uses axes AX instead of current axes.

Projection can be 'orthographic' (default) or 'perspective'.

CAMPROJ sets or gets the Projection property of an axes.

See also campos, camtarget, camva, camup.

Reference page in Help browser

doc camproj

Соседние файлы в папке Библиотеки Matlab