Editing User:H1manshu/GSoC2022/Log

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
==Dev Log==
 
==Dev Log==
 
(newest first)
 
(newest first)
 
* '''10 - 16 Nov''':
 
** Added y coordinate reverse for image point so that it can be transformed to the model point.
 
** Added translate, rotate, and scale on the transformation matrix.
 
** Added checked colors for both light and dark themes.
 
* '''01 - 09 Nov''':
 
** Discussed with my mentor on how to get region name when we shoot a ray at the object.
 
** Implemented slot when it gets a selected name and then displays it in the object docks.
 
** Looks like raycasting is not working since it is not hitting the object.
 
 
===October===
 
* '''29 - 31 Oct''':
 
** Added a toggle feature for the select mouse feature but looks like toggle is not the right way for this feature.
 
* '''21 - 28 Oct''':
 
** Added a new icon for selecting an object.
 
** Added QAction and QToolButton for selecting an object.
 
** Added SelectMouseAction class and installed event filter.
 
* '''11 - 20 Oct''':
 
** '''MouseAction''' class and '''MoveMouseAction''' class merged with the master branch. [https://github.com/BRL-CAD/arbalest/pull/38 38]
 
**  Done some minor changes to make the '''eventFilter()''' work.
 
* '''1 - 10 Oct''':
 
** Added getters and setters inside '''Display''' class so that those private variables can be accessed by '''MouseAction''' derived classes.
 
** Fixed some variable names for mouse events which will be cast to QMouseEvent from QEvent.
 
 
===September===
 
* '''27 - 30 Sept''':
 
** Reset the branch to main and created a new PR where it will now link with Display.h.
 
* '''19 - 26 Sept''':
 
** Looked in '''ObjectTree.cpp''' where I came to know about '''changeVisibilityState()'''.
 
** Pushed a commit where I added the skeleton class for '''SelectObjectMouseFeature'''.
 
* '''16 - 18 Sept''':
 
** Added '''MouseAction''' and '''DragWindowMouseAction''' class to the PR [https://github.com/BRL-CAD/arbalest/pull/33/commits/0ac9e7f1d4fe64883afce0679bff3e6d85e1d905 36].
 
* '''14 - 15 Sept''':
 
** Shifted the '''eventFilter()''' to '''DragWindowMouseAction''' class and connected with '''MainWindow class'''.
 
* '''12 - 13 Sept''':
 
** Took a break
 
* '''8 - 9 Sept''':
 
** Fixed header inclusion cycle and removed unnecessary conditional operator for [https://github.com/BRL-CAD/arbalest/pull/36 #36].
 
** Added a function inside '''MainWindow''' class that will call respective mouse action objects.
 
* '''7 Sept''':
 
** Added '''DragWindowMouseAction''' derived class and tried to shift the '''eventFilter()''' to base class of '''MouseAction''' class to make it pure virtual function and later derived it inside derived class.
 
* '''6 Sept''':
 
** Improved logic for '''Get()''' where if the user press cancels, it shouldn't prompt the message box.
 
* '''5 Sept''':
 
** Implemented a check for unique object names through '''Get()'''.
 
 
===August===
 
* '''28 - 31 Aug''':
 
** Added a [https://github.com/BRL-CAD/arbalest/pull/36 PR] which solved [https://github.com/BRL-CAD/arbalest/issues/34 issue 34]
 
* '''27 Aug''':
 
** Found a way to fix [https://github.com/BRL-CAD/arbalest/issues/34 34]
 
** Still need to fix [https://github.com/BRL-CAD/arbalest/issues/35 35]
 
* '''21 - 26 Aug''':
 
** Removed return type '''MemoryDatabase''' object and added '''ConstDatabase''' object for '''getDatabase()'''.
 
** Removed color scheme of message box.
 
** Shifted '''getBRLCADObject()''' inside '''Document''' class.
 
** Reported two issues: [https://github.com/BRL-CAD/arbalest/issues/34 34] and [https://github.com/BRL-CAD/arbalest/issues/35 35].
 
* '''18 - 20 Aug''':
 
** Overloaded '''Get()''' of '''ConstDatabase''' class which leads to more constness errors in the program.
 
* '''17 Aug''':
 
** Found two overloads for '''BRLCAD::ConstDatabase::Get()''' while debugging '''getDatabase()'''.
 
** Used '''Object* ConstDatabase::Get(const char* objectName)''' and it works without throwing any other errors.
 
* '''16 Aug''':
 
** Removed header color of the dialog box.
 
** Add '''*cancel''' instead of '''cancel'''.
 
* '''14 - 15 Aug''':
 
** Discussed with mentor about how to start with adding mouse feature to the arbalest.
 
** Refactored '''maybeSave()''' so that it can accept '''documentId''' and '''cancel''' parameter to work both for tabCloseRequested and '''closeEvent()'''.
 
* '''11 - 13 Aug''':
 
** Not feeling the vibe to do something. Will start from 14th.
 
* '''7 - 10 Aug''':
 
** Added a new [https://github.com/BRL-CAD/arbalest/pull/23/commits/ae730b8b53e84a6274793779561bb36a1a698a15 commit] where I added color and text size to the heading of the QMessageBox.
 
** Reported two new issues while debugging: [https://github.com/BRL-CAD/arbalest/issues/32https://github.com/BRL-CAD/arbalest/issues/32 issue32]
 
* '''6 Aug''':
 
** Added new [https://github.com/BRL-CAD/arbalest/pull/23/commits/69f4d1f3b4028a17dfcdcda33988b2e02fcea7d6 commit] where it fixed [https://github.com/BRL-CAD/arbalest/issues/27 issue 27].
 
** Created two new issues during debugging ray trace.
 
* '''3 - 5 Aug''':
 
** Completed the ongoing [https://github.com/BRL-CAD/arbalest/pull/23 PR].
 
** Added new '''saveFileId()''' so that it can save document respective to document index.
 
** Tested out the PR in all various ways so that there is no bug left behind.
 
* '''1 - 2 Aug''':
 
** I added '''Add''' and '''Save''' for class '''Document''' but still there are some errors like many primitives functions are not accessible and '''Load''' function of class '''Database''' needs to be overridden in class '''Document'''.
 
 
===July===
 
* '''31 July''':
 
** Pushed a new [https://github.com/BRL-CAD/arbalest/pull/28 PR] to add apache license 2.0 to aboutwindow.cpp
 
* '''27 - 30 July''':
 
** Created an [https://github.com/BRL-CAD/arbalest/issues/27 issue] where the ray-trace function works even if there is no primitive present in the document.
 
** Added '''ConstDatabase''' and removed some of the errors reported by the compiler but still there are errors that needs attention.
 
* '''26 July''':
 
** Pushed a [https://github.com/BRL-CAD/arbalest/pull/23/commits/848d414236677926b378fcc9bdd9504b70fe112a commit] where I removed function overloading for '''Save''' and added '''Cancel''' button.
 
* '''24 July''':
 
** Taking a day off since I am having a fever.
 
* '''23 July''':
 
** Pushed a new [https://github.com/BRL-CAD/arbalest/pull/23/commits/787604d49adafc6e71e95071a3906f73fb7bb960 commit] where I added two new functions which will help '''maybeSave()'''.
 
* '''22 July''':
 
** Done nothing since I have to be ready for the project presentation for university.
 
* '''20 - 21 July''':
 
** I started implementing what I discussed with my mentor and restructured the whole '''maybeSave()'''.
 
* '''19 July''':
 
** Discussed with mentor about how to modify '''maybeSave()''' where instead of keeping two warning message, it should be one. Also we discussed how we can modify the database using '''ConstDatabase'''.
 
* '''18 July''':
 
** Seems like '''maybeSave()''' is super lengthy and I can't find how to check if the database has been modified.
 
* '''17 July''':
 
** Added '''QVector<QPair<int, QString>>''' for storing '''documentId''' with respective to '''file name''' instead of storing them separately.
 
* '''16 July''':
 
** I completed '''maybeSave()''' and now I can start looking at '''isModified()'''.
 
* '''15 July''':
 
** I write some code where it will check if there are multiple files then it will prompt for saving it if unsaved other or if there is one and only file then it will prompt with the file name.
 
** Added new [https://github.com/BRL-CAD/arbalest/pull/23/commits/e290624097953af6c597780d6c6ca55d86652a2f commit] where I partially added some code for '''maybeSave()'''.
 
 
* '''14 July''':  
 
* '''14 July''':  
 
** I pushed a new [https://github.com/BRL-CAD/arbalest/pull/21/commits/da58ba2b8056e942fc4bea5d646fb237c5c01df9 commit] where I removed '''QAction::triggered''' and added '''QAction::toggled''' signal since grid action is suitable for toggle only.
 
** I pushed a new [https://github.com/BRL-CAD/arbalest/pull/21/commits/da58ba2b8056e942fc4bea5d646fb237c5c01df9 commit] where I removed '''QAction::triggered''' and added '''QAction::toggled''' signal since grid action is suitable for toggle only.
Line 217: Line 107:
 
* '''1 June''':  
 
* '''1 June''':  
 
** I created a [https://github.com/BRL-CAD/arbalest/pull/19 pull request] to remove '''QPushButton''' and add '''QToolButton''' so that the '''QAction''' objects for file, view, and ray trace can be used as one single unit. And I mentioned this pull request with an [https://github.com/BRL-CAD/arbalest/issues/17 issue]  
 
** I created a [https://github.com/BRL-CAD/arbalest/pull/19 pull request] to remove '''QPushButton''' and add '''QToolButton''' so that the '''QAction''' objects for file, view, and ray trace can be used as one single unit. And I mentioned this pull request with an [https://github.com/BRL-CAD/arbalest/issues/17 issue]  
===May===
+
===26 - 30 May===
 
* '''30 May''':  
 
* '''30 May''':  
 
** Discussed with mentor for what to choose between '''QToolButton''' and '''QPushButton'''. Also I got to know that '''QAction''' can be assigned to '''QToolButton''' which will be better because once object of '''QAction''' is created then we can assign it to '''QToolButton'''.
 
** Discussed with mentor for what to choose between '''QToolButton''' and '''QPushButton'''. Also I got to know that '''QAction''' can be assigned to '''QToolButton''' which will be better because once object of '''QAction''' is created then we can assign it to '''QToolButton'''.

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)