-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added custom functions to plot the agent SVG and legend #162
Added custom functions to plot the agent SVG and legend #162
Conversation
… in standard functions, assigned by default
I really like what you have here! And I see the logic for it. But if at all possible, I don’t think plotting belongs in PhysiCell_phenotype.cpp and Cell_Functions. I wonder: is it possible to move it closer to PhysiCell_pathology.cpp I guess I can see where you want to make how a cell is plotted part of the cell, so that differnt cells can be plotted different ways. that’s really clever. I can see in the future we may want ot define this at the “type” level (as part of teh Cell_Definition . I’m not super keen on mixing visualization with actual cell biology, but I can see why it’s done here. Can we thikn if there’s a workaround? For example a std::map between a Cell_Definition* and a SVG_plot_function ? (and by default, that map is our standard SVG plot cell?) |
I admit this is cumbersome. We coudl auto-create the map by altering the constructor for but I fear the mess. Hmm |
Let's approve this for now, but let's please consider a future revision that separates plotting from visualization. Thanks, @vincent-noel ! |
Hello @vincent-noel ode-energy-sample model crashes at
My question how can I accommodate this new And, I don't know, actually, this is the where I can ask this question. Sorry! If there is another discussion that I can ask this question. Thank you! |
Hi @furkankurtoglu. I can look into this in a few hours. Which branch should I look at ? Is it already merged in the development branch ? |
I found the problem, and proposed this fix : #186 |
It works! Thank you very much, @vincent-noel! |
For PhysiMeSS, we need new design for our fibers in the svg files (a rectangle). To achieve this, we need to modify both the plotting of the svg plot, and of its legend.
This PR introduce custom functions for the plotting of the SVG agent and of the agent's legend. The existing functions are now inside standard functions, and are still used automatically. But users now have the choice to choose a different function to plot them, by modifying the function pointer inside the Cell_Functions data structure.